[weston] libweston: include weston-egl-ext.h in drm, x11 and wayland compositor

Vincent Abriou vincent.abriou at st.com
Wed Oct 5 14:14:07 UTC 2016


As to what is done for gl-renderer.c, weston-egl-ext.h should be
include in compositor-drm.c, compositor-x11.c and compositor-wayland.c.
This fix building issue with GPU that does not have EGL_PLATFORM_xxx_KHR
in their extension header file eglext.h.

Signed-off-by: Vincent Abriou <vincent.abriou at st.com>
---
 libweston/compositor-drm.c     | 1 +
 libweston/compositor-wayland.c | 1 +
 libweston/compositor-x11.c     | 1 +
 3 files changed, 3 insertions(+)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 8319d7c..43f741a 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -52,6 +52,7 @@
 #include "shared/helpers.h"
 #include "shared/timespec-util.h"
 #include "gl-renderer.h"
+#include "weston-egl-ext.h"
 #include "pixman-renderer.h"
 #include "libbacklight.h"
 #include "libinput-seat.h"
diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c
index 0375a11..395860b 100644
--- a/libweston/compositor-wayland.c
+++ b/libweston/compositor-wayland.c
@@ -43,6 +43,7 @@
 #include "compositor.h"
 #include "compositor-wayland.h"
 #include "gl-renderer.h"
+#include "weston-egl-ext.h"
 #include "pixman-renderer.h"
 #include "shared/helpers.h"
 #include "shared/image-loader.h"
diff --git a/libweston/compositor-x11.c b/libweston/compositor-x11.c
index 3e0d20f..14b60bd 100644
--- a/libweston/compositor-x11.c
+++ b/libweston/compositor-x11.c
@@ -56,6 +56,7 @@
 #include "shared/helpers.h"
 #include "shared/image-loader.h"
 #include "gl-renderer.h"
+#include "weston-egl-ext.h"
 #include "pixman-renderer.h"
 #include "presentation-time-server-protocol.h"
 #include "linux-dmabuf.h"
-- 
1.9.1



More information about the wayland-devel mailing list