[clutter/wip/cogl-winsys-egl: 6/21] Don't reference GL_STACK_OVERFLOW/UNDERFLOW for GLES



commit 248bee7c5eeba23bb1c3f5fa82fd838a305b3170
Author: Robert Bragg <robert linux intel com>
Date:   Wed Mar 2 11:02:50 2011 +0000

    Don't reference GL_STACK_OVERFLOW/UNDERFLOW for GLES
    
    These symbols aren't available when building with GLES so only reference
    them when building with OpenGL.

 clutter/cogl/cogl/cogl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/cogl/cogl/cogl.c b/clutter/cogl/cogl/cogl.c
index 69ed652..6592221 100644
--- a/clutter/cogl/cogl/cogl.c
+++ b/clutter/cogl/cogl/cogl.c
@@ -62,8 +62,10 @@ static const struct {
   { GL_INVALID_ENUM,      "Invalid enumeration value" },
   { GL_INVALID_VALUE,     "Invalid value" },
   { GL_INVALID_OPERATION, "Invalid operation" },
+#ifdef HAVE_COGL_GL
   { GL_STACK_OVERFLOW,    "Stack overflow" },
   { GL_STACK_UNDERFLOW,   "Stack underflow" },
+#endif
   { GL_OUT_OF_MEMORY,     "Out of memory" },
 
 #ifdef GL_INVALID_FRAMEBUFFER_OPERATION_EXT



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]