[Piglit] [PATCH 1/8] util: GL_STACK_OVERFLOW is missing in GLES2

Chia-I Wu olvaffe at gmail.com
Sat Sep 3 09:29:24 PDT 2011


Fix a build error since 1e6c5b71cde0d9cb4083cdf94a54dfa00be4b0d9.
---
 tests/util/piglit-util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index f6be044..11117ed 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -168,8 +168,10 @@ const char* piglit_get_gl_error_name(GLenum error)
     CASE(GL_INVALID_VALUE)
     CASE(GL_NO_ERROR)
     CASE(GL_OUT_OF_MEMORY)
+#if defined(USE_OPENGL)
     CASE(GL_STACK_OVERFLOW)
     CASE(GL_STACK_UNDERFLOW)
+#endif
     default:
         return "(unrecognized error)";
     }
-- 
1.7.5.4



More information about the Piglit mailing list