Move some GLES checks to runtime.

This commit is contained in:
Unknown W. Brackets committed 2015-08-24 20:35:50 -07:00
1 parent 9baedbcc2a
commit 8487e56b42
5 files changed
+201 -197

No files matched your search

+5 -5
View File
@@ -342,11 +342,11 @@ public:
// TODO: Make these actually query the right information
switch (info) {
case APINAME:
#ifdef USING_GLES2
return "OpenGL ES";
#else
return "OpenGL";
#endif
if (gl_extensions.IsGLES) {
return "OpenGL ES";
} else {
return "OpenGL";
}
case VENDORSTRING: return (const char *)glGetString(GL_VENDOR);
case VENDOR:
switch (gl_extensions.gpuVendor) {