summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglconvenience
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-02-11 06:55:12 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-02-11 06:59:05 (GMT)
commit27ba43fe5302158cdb54bc0e3fd055b3008ec7ba (patch)
treed67764049746c3e535418b69988c817207b54fff /src/plugins/platforms/eglconvenience
parent80b387b77863230e6edbc03695a971bcd0bcb5d4 (diff)
downloadQt-27ba43fe5302158cdb54bc0e3fd055b3008ec7ba.zip
Qt-27ba43fe5302158cdb54bc0e3fd055b3008ec7ba.tar.gz
Qt-27ba43fe5302158cdb54bc0e3fd055b3008ec7ba.tar.bz2
Lighthouse: Wayland: Sort out egl includes in plugin
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.
Diffstat (limited to 'src/plugins/platforms/eglconvenience')
-rw-r--r--src/plugins/platforms/eglconvenience/qeglconvenience.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglconvenience/qeglconvenience.h b/src/plugins/platforms/eglconvenience/qeglconvenience.h
index a1df3cc..681e9db 100644
--- a/src/plugins/platforms/eglconvenience/qeglconvenience.h
+++ b/src/plugins/platforms/eglconvenience/qeglconvenience.h
@@ -46,7 +46,11 @@
#include <QtGui/QPlatformWindowFormat>
#include <QtCore/QVector>
+#ifdef Q_PLATFORM_WAYLAND
+#include "qwaylandinclude.h"
+#else
#include <EGL/egl.h>
+#endif
QT_BEGIN_NAMESPACE
QVector<EGLint> q_createConfigAttributesFromFormat(const QPlatformWindowFormat &format);