[PATCH weston] gl-renderer: Add a #define to obtain the prototypes from the gl2 header.
Emmanuel Gil Peyrot
emmanuel.peyrot at collabora.com
Thu Sep 1 14:12:27 UTC 2016
This prevents a segfault when running on Mesa master, due to the GLES2
symbols not being declared with the correct prototype (or at all).
Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot at collabora.com>
---
libweston/gl-renderer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index 031576b..3979c3a 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -26,6 +26,7 @@
#include "config.h"
+#define GL_GLEXT_PROTOTYPES
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
--
2.9.3
More information about the wayland-devel
mailing list