From 93fdb8c5e3d76e8140d8cb81679d6001a9ed116d Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 22 Mar 2019 13:37:18 -0700 Subject: [PATCH] glx_arb_create_context: Fix build against older GL headers. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Adam Jackson --- 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 680ec6678..8c1645fac 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; -- 2.11.4.GIT