diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-03-02 11:02:50 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-05-03 11:43:23 +0100 |
commit | ea1ca8d69de9babbe4c01d6844c5988b7d438962 (patch) | |
tree | 84eb0bff0378c2302a5ba13568e5692360379c80 | |
parent | 9cddf620243c8370c593a58eaa1396445627a003 (diff) | |
download | clutter-ea1ca8d69de9babbe4c01d6844c5988b7d438962.tar.gz |
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.
-rw-r--r-- | 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 69ed65243..65922217a 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 |