From 1353827116760de867fb5c286fdc94b0ed64a57e Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 11 Oct 2011 00:57:43 +0000 Subject: [PATCH] cheese OpenGL ES hack --- panda/src/glstuff/glGraphicsStateGuardian_src.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.h b/panda/src/glstuff/glGraphicsStateGuardian_src.h index de61a5644c..e293e1baa6 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.h +++ b/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