Browse Source

Fix for gles returning driver info causing incomplete builds on certain linux distros

Zhao Huang 14 years ago
parent
commit
cbf9c83e23
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 2 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -5408,7 +5408,7 @@ query_gl_version() {
         << _gl_version_major << "." << _gl_version_minor
         << "\n";
     }
-
+#ifndef OPENGLES
     if (_gl_version_major==1) {
         const char *extstr = (const char *) GLP(GetString)(GL_EXTENSIONS);
         if (extstr != NULL) {
@@ -5426,6 +5426,7 @@ query_gl_version() {
             GLCAT.warning()  << "Invalid GL_SHADING_LANGUAGE_VERSION format.\n";            
         }
     }
+#endif
   }
 }