Browse Source

cheese OpenGL ES hack

David Rose 14 years ago
parent
commit
1353827116
1 changed files with 8 additions and 0 deletions
  1. 8 0
      panda/src/glstuff/glGraphicsStateGuardian_src.h

+ 8 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.h

@@ -41,6 +41,14 @@
 class PlaneNode;
 class Light;
 
+#ifdef OPENGLES
+// This is a cheesy hack to allow the following typedefs to compile
+// for OpenGL ES.  We won't actually be calling any of the "double"
+// functions in this case (and they don't exist anyway), but we need
+// to be able to get past their declarations.
+typedef double GLdouble;
+#endif  // OPENGLES
+
 // These typedefs are declared in glext.h, but we must repeat them
 // here, mainly because they will not be included from glext.h if the
 // system GL version matches or exceeds the GL version in which these