From: Brian Paul <[email protected]>

To allow building when the system's eglext.h isn't new enough.
---
 tests/egl/spec/egl_khr_create_context/common.h |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/tests/egl/spec/egl_khr_create_context/common.h 
b/tests/egl/spec/egl_khr_create_context/common.h
index a31aa53..d2480f2 100644
--- a/tests/egl/spec/egl_khr_create_context/common.h
+++ b/tests/egl/spec/egl_khr_create_context/common.h
@@ -25,6 +25,24 @@
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 
+/* In case eglext.h isn't new enough: */
+#ifndef EGL_KHR_create_context
+#define EGL_KHR_create_context 1
+#define EGL_CONTEXT_MAJOR_VERSION_KHR                      
EGL_CONTEXT_CLIENT_VERSION
+#define EGL_CONTEXT_MINOR_VERSION_KHR                      0x30FB
+#define EGL_CONTEXT_FLAGS_KHR                              0x30FC
+#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR                0x30FD
+#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR  0x31BD
+#define EGL_NO_RESET_NOTIFICATION_KHR                      0x31BE
+#define EGL_LOSE_CONTEXT_ON_RESET_KHR                      0x31BF
+#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR                   0x00000001
+#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR      0x00000002
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR           0x00000004
+#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR                    0x00000001
+#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR    0x00000002
+#endif
+
+
 extern EGLDisplay egl_dpy;
 extern EGLConfig cfg;
 extern EGLContext ctx;
-- 
1.7.4.1

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to