[waffle] [PATCH 1/4] egl: fix build against old headers

Emil Velikov emil.l.velikov at gmail.com
Mon May 16 10:48:07 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Namely add the EGL_CONTEXT_OPENGL_ROBUST_ACCESS define, if missing.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/waffle/egl/wegl_context.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/waffle/egl/wegl_context.c b/src/waffle/egl/wegl_context.c
index 0e59231..083200e 100644
--- a/src/waffle/egl/wegl_context.c
+++ b/src/waffle/egl/wegl_context.c
@@ -34,6 +34,10 @@
 #include "wegl_platform.h"
 #include "wegl_util.h"
 
+#ifndef EGL_CONTEXT_OPENGL_ROBUST_ACCESS
+#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS  0x31B2
+#endif
+
 static bool
 bind_api(struct wegl_platform *plat, int32_t waffle_context_api)
 {
-- 
2.6.2



More information about the waffle mailing list