Skip to content

Commit 07598b3

Browse files
committed
Added log output for OpenGL extensions to warn when NPOT textures aren't supported
1 parent bc72990 commit 07598b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

es-app/src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ int main(int argc, char* argv[])
166166
return 1;
167167
}
168168

169+
std::string glExts = (const char*)glGetString(GL_EXTENSIONS);
170+
LOG(LogInfo) << "Checking available OpenGL extensions...";
171+
LOG(LogInfo) << " ARB_texture_non_power_of_two: " << (glExts.find("ARB_texture_non_power_of_two") != std::string::npos ? "ok" : "MISSING");
172+
169173
window.renderLoadingScreen();
170174
}
171175

0 commit comments

Comments
 (0)