no-error.c: In function ‘check_no_error’:
no-error.c:37:3: error: ‘GLX_CONTEXT_OPENGL_NO_ERROR_ARB’ undeclared (first use
in this function)
GLX_CONTEXT_OPENGL_NO_ERROR_ARB, 1,
^
Fixes: 4991384f1332 ("glx: add test for GLX_ARB_create_context_no_error")
Signed-off-by: Vinson Lee <[email protected]>
---
tests/spec/glx_arb_create_context/no-error.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/spec/glx_arb_create_context/no-error.c
b/tests/spec/glx_arb_create_context/no-error.c
index 680ec6678279..8c1645facea4 100644
--- a/tests/spec/glx_arb_create_context/no-error.c
+++ b/tests/spec/glx_arb_create_context/no-error.c
@@ -26,6 +26,10 @@
#define BOOLSTR(x) ((x) ? "yes" : "no")
+#ifndef GLX_CONTEXT_OPENGL_NO_ERROR_ARB
+#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
+#endif
+
static enum piglit_result check_no_error(bool debug, bool robust)
{
int ctx_flags = 0;
--
1.9.1
_______________________________________________
Piglit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/piglit