Commit 93fdb8c5 authored by Vinson Lee's avatar Vinson Lee

glx_arb_create_context: Fix build against older GL headers.

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: 4991384f ("glx: add test for GLX_ARB_create_context_no_error")
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent 1b7a614d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment