Przeglądaj źródła

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

rdb 10 lat temu
rodzic
commit
e8ce2b7b54

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

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