summaryrefslogtreecommitdiff
path: root/glx/glxserver.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-02-20 11:03:45 -0500
committerAdam Jackson <ajax@redhat.com>2018-02-26 10:18:58 -0500
commita63ab81f6be7ad46b7e2d98a50aef4da5e664847 (patch)
tree19766ccdc8798b68f73e723197dcd45d11c5d2a1 /glx/glxserver.h
parent701f3a206d6f71c4754f457e95e2b954cf0b80c7 (diff)
glx: Enable GLX_ARB_create_context_no_error (v2)
This is mostly for the client library's convenience, if this extension is listed then it can know the attribute won't be rejected. Note that we don't honor this attribute for indirect contexts. That's fine, we don't want to introduce undefined behavior into a potentially privileged process. v2: Remember to ignore the attribute (Eric Anholt) Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx/glxserver.h')
-rw-r--r--glx/glxserver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/glx/glxserver.h b/glx/glxserver.h
index 60bdeb00d..79f4944d0 100644
--- a/glx/glxserver.h
+++ b/glx/glxserver.h
@@ -50,6 +50,10 @@
#include <GL/glext.h>
#include <GL/glxproto.h>
+#ifndef GLX_CONTEXT_OPENGL_NO_ERROR_ARB
+#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
+#endif
+
/*
** GLX resources.
*/