[PATCH weston-1.0] Move weston-egl-ext.h include to gles2-renderer.c

U. Artie Eoff ullysses.a.eoff at intel.com
Sat Feb 23 19:22:50 PST 2013

From: "U. Artie Eoff" <ullysses.a.eoff at intel.com>

The weston-egl-ext.h include in compositor.h is not needed.  Rather,
it is only needed by gles2-renderer.c.  This also fixes external
module compile error since weston-egl-ext.h is not part of the
Weston SDK:

weston/compositor.h:39:28: fatal error: weston-egl-ext.h:
	No such file or directory

Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
 src/compositor.h     | 1 -
 src/gles2-renderer.c | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.h b/src/compositor.h
index 4b77abd..740009c 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -36,7 +36,6 @@
 #include "version.h"
 #include "matrix.h"
 #include "config-parser.h"
-#include "weston-egl-ext.h"
 #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
diff --git a/src/gles2-renderer.c b/src/gles2-renderer.c
index 544cc15..179d592 100644
--- a/src/gles2-renderer.c
+++ b/src/gles2-renderer.c
@@ -29,6 +29,7 @@
 #include <assert.h>
 #include "compositor.h"
+#include "weston-egl-ext.h"
 static const char *
 egl_error_string(EGLint code)

More information about the wayland-devel mailing list