summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authortsenyk <tsenyk@rudolf.europe.nokia.com>2010-05-05 12:27:01 (GMT)
committertsenyk <tsenyk@rudolf.europe.nokia.com>2010-05-05 12:27:01 (GMT)
commite5cf17ca04005909dfeca938606041dfa3a1b2ad (patch)
treee3c1bedf2ae6ffa0e8abe39738882a332b37a010 /src/opengl/qgl_p.h
parent208e207925f9073fdca55f5824ce4d0051c86c6c (diff)
downloadQt-e5cf17ca04005909dfeca938606041dfa3a1b2ad.zip
Qt-e5cf17ca04005909dfeca938606041dfa3a1b2ad.tar.gz
Qt-e5cf17ca04005909dfeca938606041dfa3a1b2ad.tar.bz2
ifdef fix for egl on ws_lite
reviewed by: Jørgen
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 34cbdfc..a2445b7 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -350,14 +350,17 @@ public:
HBITMAP hbitmap;
HDC hbitmap_hdc;
#endif
-#if defined(Q_WS_LITE)
- QPlatformGLContext *platformContext;
-#elif !defined(QT_NO_EGL)
+
+#if !defined(QT_NO_EGL)
bool ownsEglContext;
QEglContext *eglContext;
EGLSurface eglSurface;
void destroyEglSurfaceForDevice();
EGLSurface eglSurfaceForDevice() const;
+#endif
+
+#if defined(Q_WS_LITE)
+ QPlatformGLContext *platformContext;
#elif defined(Q_WS_X11) || defined(Q_WS_MAC)
void* cx;
#endif