[Piglit] [PATCHv2 01/10] util: GL_STACK_{OVER, UNDER}FLOW are missing in GLES2
Chia-I Wu
olvaffe at gmail.com
Sun Sep 4 19:44:52 PDT 2011
Fix a build error since 1e6c5b71cde0d9cb4083cdf94a54dfa00be4b0d9.
---
tests/util/piglit-util.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
index f6be044..507afca 100644
--- a/tests/util/piglit-util.c
+++ b/tests/util/piglit-util.c
@@ -168,8 +168,13 @@ const char* piglit_get_gl_error_name(GLenum error)
CASE(GL_INVALID_VALUE)
CASE(GL_NO_ERROR)
CASE(GL_OUT_OF_MEMORY)
+ /* enums that are not available everywhere */
+#if defined(GL_STACK_OVERFLOW)
CASE(GL_STACK_OVERFLOW)
+#endif
+#if defined(GL_STACK_UNDERFLOW)
CASE(GL_STACK_UNDERFLOW)
+#endif
default:
return "(unrecognized error)";
}
--
1.7.5.4
More information about the Piglit
mailing list