Browse Source

Fix OpenGL ES 1 compile error, it does not have GL_INT

rdb 10 years ago
parent
commit
e8ce2b7b54
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 4 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -7391,7 +7391,11 @@ get_numeric_type(Geom::NumericType numeric_type) {
     return GL_SHORT;
     return GL_SHORT;
 
 
   case Geom::NT_int32:
   case Geom::NT_int32:
+#ifndef OPENGLES_1
     return GL_INT;
     return GL_INT;
+#else
+    break;
+#endif
 
 
   case Geom::NT_packed_ufloat:
   case Geom::NT_packed_ufloat:
 #ifndef OPENGLES
 #ifndef OPENGLES