aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-graphics/wayland/weston/weston-workaround-for-egl-no-display.patch
blob: 3133d2fa83b2c1bcf12626445f60acaeff6ccb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/src/gl-renderer.c	2016-01-27 08:49:43.328882567 +0000
+++ b/src/gl-renderer.c	2016-01-27 08:56:31.807915324 +0000
@@ -2127,7 +2127,11 @@
 {
 	const char *extensions;
 
+#ifndef EGL_DRIVER_NO_EGL_NO_DISPLAY_SUPPORT
 	extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
+#else
+        extensions = NULL;
+#endif
 	if (!extensions) {
 		weston_log("Retrieving EGL client extension string failed.\n");
 		return;
@@ -2246,8 +2250,12 @@
 	char s[64];
 
 	if (!extensions) {
+#ifndef EGL_DRIVER_NO_EGL_NO_DISPLAY_SUPPORT
 		extensions = (const char *) eglQueryString(
 			EGL_NO_DISPLAY, EGL_EXTENSIONS);
+#else
+                extensions = NULL;
+#endif
 
 		if (!extensions)
 			return 0;