Added log output for OpenGL extensions to warn when NPOT textures aren't supported

This commit is contained in:
Aloshi 2014-07-04 14:42:26 -05:00
parent bc72990f39
commit 07598b3d6f

View file

@ -166,6 +166,10 @@ int main(int argc, char* argv[])
return 1;
}
std::string glExts = (const char*)glGetString(GL_EXTENSIONS);
LOG(LogInfo) << "Checking available OpenGL extensions...";
LOG(LogInfo) << " ARB_texture_non_power_of_two: " << (glExts.find("ARB_texture_non_power_of_two") != std::string::npos ? "ok" : "MISSING");
window.renderLoadingScreen();
}