diff options
author | ninerider <qt-info@nokia.com> | 2010-03-05 12:45:39 (GMT) |
---|---|---|
committer | ninerider <qt-info@nokia.com> | 2010-03-05 12:45:39 (GMT) |
commit | b101849cafea6bcc793a1bfbbe4861c19e08ac01 (patch) | |
tree | 659a445a58b18c1cc9339c58609c300c1c92d658 /src/gui/egl | |
parent | ce1d5d10d0316a05a2bfce09239fd532a2d5ca7e (diff) | |
download | Qt-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.cpp | 3 |
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; |