summaryrefslogtreecommitdiffstats
path: root/src/gui/egl
diff options
context:
space:
mode:
authorninerider <qt-info@nokia.com>2010-03-05 12:45:39 (GMT)
committerninerider <qt-info@nokia.com>2010-03-05 12:45:39 (GMT)
commitb101849cafea6bcc793a1bfbbe4861c19e08ac01 (patch)
tree659a445a58b18c1cc9339c58609c300c1c92d658 /src/gui/egl
parentce1d5d10d0316a05a2bfce09239fd532a2d5ca7e (diff)
downloadQt-b101849cafea6bcc793a1bfbbe4861c19e08ac01.zip
Qt-b101849cafea6bcc793a1bfbbe4861c19e08ac01.tar.gz
Qt-b101849cafea6bcc793a1bfbbe4861c19e08ac01.tar.bz2
Compile fix for Windows Mobile and OpenGLES2
The native device is now the default screen device.
Diffstat (limited to 'src/gui/egl')
-rw-r--r--src/gui/egl/qegl_wince.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/egl/qegl_wince.cpp b/src/gui/egl/qegl_wince.cpp
index c07b20b..2d08805 100644
--- a/src/gui/egl/qegl_wince.cpp
+++ b/src/gui/egl/qegl_wince.cpp
@@ -53,8 +53,7 @@ QT_BEGIN_NAMESPACE
EGLNativeDisplayType QEgl::nativeDisplay()
{
- HWND win = (static_cast<QWidget*>(device))->winId();
- HDC myDc = GetDC(win);
+ HDC myDc = GetDC(0);
if (!myDc) {
qWarning("QEglContext::nativeDisplay(): WinCE display is not open");
return EGL_DEFAULT_DISPLAY;