Lighthouse: Wayland: Sort out egl includes in plugin
authorJørgen Lind <jorgen.lind@nokia.com>
Fri, 11 Feb 2011 06:55:12 +0000 (07:55 +0100)
committerJørgen Lind <jorgen.lind@nokia.com>
Fri, 11 Feb 2011 06:59:05 +0000 (07:59 +0100)
We used to include the X part of the eglplatform.h, but now the mesa
version of the header file has a WL_EGL_PLATFORM part. This define is
defined in wayland-egl.h which thus needs to be included before any egl
header file.

src/plugins/platforms/wayland/qwaylandinclude.h
src/plugins/platforms/wayland/wayland.pro

index d1f7e39..afaa885 100644 (file)
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>
 
-//#define MESA_EGL_NO_X11_HEADERS
 #define EGL_EGLEXT_PROTOTYPES
  #include <EGL/egl.h>
  #include <EGL/eglext.h>
 
-#undef FocusOut
-#undef FocusIn
-#undef KeyPress
-#undef KeyRelease
-#undef None
-#undef RevertToParent
-#undef GrayScale
-#undef CursorShape
-
-#ifdef FontChange
-#undef FontChange
-#endif
-
-
 #endif // QWAYLANDINCLUDE_H
index 7e8a1fa..e40e423 100644 (file)
@@ -3,6 +3,8 @@ include(../../qpluginbase.pri)
 
 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
 
+DEFINES += Q_PLATFORM_WAYLAND
+
 SOURCES =   main.cpp \
             qwaylandintegration.cpp \
             qwaylandshmsurface.cpp \