[Piglit] [PATCH] egl_khr_create_context: Fix build error with old eglext.h

Chad Versace chad.versace at linux.intel.com
Mon Nov 26 10:12:39 PST 2012


This patch defines EGL_OPENGL_ES3_BIT_KHR, for the case when eglext.h is
too old.

Reported-by: Ken Phillis Jr <kphillisjr at gmail.com>
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 tests/egl/spec/egl_khr_create_context/common.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/egl/spec/egl_khr_create_context/common.h b/tests/egl/spec/egl_khr_create_context/common.h
index d2480f2..4eab699 100644
--- a/tests/egl/spec/egl_khr_create_context/common.h
+++ b/tests/egl/spec/egl_khr_create_context/common.h
@@ -42,6 +42,11 @@
 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR    0x00000002
 #endif
 
+/* Old versions of eglext.h may define EGL_KHR_create_context without defining
+ * the EGL_OPENGL_ES3_BIT_KHR, because the bit was not defined until version
+ * 13 of the extension.
+ */
+#define EGL_OPENGL_ES3_BIT_KHR                              0x00000040
 
 extern EGLDisplay egl_dpy;
 extern EGLConfig cfg;
-- 
1.7.11.7



More information about the Piglit mailing list