summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-03-04 12:08:32 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-04 12:30:39 (GMT)
commitc5264c89b7710dc2f2d8c7c604f0b23852cb2eef (patch)
tree4388d8b406284cefd17804fe12b260b0ec1666f1 /src/opengl
parented1f672efb19932fe279a3ebfedb973c02c4fee4 (diff)
downloadQt-c5264c89b7710dc2f2d8c7c604f0b23852cb2eef.zip
Qt-c5264c89b7710dc2f2d8c7c604f0b23852cb2eef.tar.gz
Qt-c5264c89b7710dc2f2d8c7c604f0b23852cb2eef.tar.bz2
Fix build when egl.h includes X11 headers & pollutes namespace
At some point we should fix the include order in all the .cpp files, however #udef'ing the defines we use elsewhere seems to work for now. Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_p.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index b828bea..c142715 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -65,13 +65,7 @@
#include "qglpaintdevice_p.h"
#ifdef QT_OPENGL_ES
-QT_BEGIN_INCLUDE_NAMESPACE
-#if defined(QT_OPENGL_ES_2)
-#include <EGL/egl.h>
-#else
-#include <GLES/egl.h>
-#endif
-QT_END_INCLUDE_NAMESPACE
+#include <QtGui/private/qegl_p.h>
#endif
QT_BEGIN_NAMESPACE