summaryrefslogtreecommitdiff
path: root/tests/egl
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-11-26 10:06:57 -0800
committerChad Versace <chad.versace@linux.intel.com>2012-11-27 18:06:10 -0800
commit76e74cb6cb356e8796c536a604bea6418756f32d (patch)
tree3fa0c2f7fa7b39425f0a564418e4fc6b242d4bc0 /tests/egl
parent7547942372926fe2f60bb895661408481c39914f (diff)
egl_khr_create_context: Fix build error with old eglext.h
This patch defines EGL_OPENGL_ES3_BIT_KHR, for the case when eglext.h is too old. Reported-by: Ken Phillis Jr <kphillisjr@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/egl')
-rw-r--r--tests/egl/spec/egl_khr_create_context/common.h7
1 files changed, 7 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 d2480f29b..56cc80f80 100644
--- a/tests/egl/spec/egl_khr_create_context/common.h
+++ b/tests/egl/spec/egl_khr_create_context/common.h
@@ -42,6 +42,13 @@
#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.
+ */
+#ifdef EGL_OPENGL_ES3_BIT_KHR
+#define EGL_OPENGL_ES3_BIT_KHR 0x00000040
+#endif
extern EGLDisplay egl_dpy;
extern EGLConfig cfg;