From 07598b3d6f436948a874ceaaa0121a6993f4f28d Mon Sep 17 00:00:00 2001 From: Aloshi Date: Fri, 4 Jul 2014 14:42:26 -0500 Subject: [PATCH] Added log output for OpenGL extensions to warn when NPOT textures aren't supported --- es-app/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 88aec5cbe..c631264d7 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -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(); }