[Mesa-stable] [PATCH 2/3] mesa: Redefine GLX_CONTEXT_{CORE|COMPATIBILITY}_PROFILE_BIT_ARB
Andreas Boll
andreas.boll.dev at gmail.com
Mon Feb 9 04:19:18 PST 2015
GLX_MESA_query_renderer uses these values for its query
GLX_RENDERER_PREFERRED_PROFILE_MESA. Since GLX header files may not
be available everywhere they need to be used, redefine them here.
This is needed for the next patch.
Cc: "10.3 10.4 10.5" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Andreas Boll <andreas.boll.dev at gmail.com>
---
I hope this is the right solution to use these defines in
src/mesa/drivers/dri/common/utils.c since the above defines like
GLX_DONT_CARE or GLX_NONE do the same.
Andreas.
src/mesa/main/glheader.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index 7f7f9a3..3151f75 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -162,6 +162,12 @@ typedef void *GLeglImageOES;
#define GLX_DONT_CARE 0xFFFFFFFF
+/* GLX_MESA_query_renderer uses these values for its query
+ * GLX_RENDERER_PREFERRED_PROFILE_MESA. Since GLX header files may not be
+ * available everywhere they need to be used, redefine them here.
+ */
+#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
+#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
#ifdef __cplusplus
}
--
2.1.4
More information about the mesa-stable
mailing list