Browse Source

OpenGL ES doesn't have GL_DOUBLE

rdb 14 years ago
parent
commit
9b23b04b7d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -5737,8 +5737,10 @@ get_numeric_type(Geom::NumericType numeric_type) {
   case Geom::NT_float32:
   case Geom::NT_float32:
     return GL_FLOAT;
     return GL_FLOAT;
 
 
+#ifndef OPENGLES
   case Geom::NT_float64:
   case Geom::NT_float64:
     return GL_DOUBLE;
     return GL_DOUBLE;
+#endif
   }
   }
 
 
   GLCAT.error()
   GLCAT.error()