summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-10-18 10:04:21 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-10-18 10:19:05 (GMT)
commitb9a3d4bf7827aa631995d47233d47583917a5a7f (patch)
treefe28db0923749bc69ec53da6b016209f1bce6f79 /src/opengl/qgl_p.h
parent17e0607ef47e455f56894e134541c46b42e7cdd9 (diff)
downloadQt-b9a3d4bf7827aa631995d47233d47583917a5a7f.zip
Qt-b9a3d4bf7827aa631995d47233d47583917a5a7f.tar.gz
Qt-b9a3d4bf7827aa631995d47233d47583917a5a7f.tar.bz2
Fix to QGLWidget crash
QGLWidget crashed due to regression caused by fix to QTTH-1553. Crash only occurred if application was locked to landscape mode but started when device was in portrait mode. Task-number: QTTH-1597 Reviewed-by: Laszlo Agocs
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 2ca8dc9..c56b2db 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -175,6 +175,7 @@ public:
#endif
#if defined(Q_OS_SYMBIAN)
, eglSurfaceWindowId(0)
+ , surfaceSizeInitialized(false)
#endif
{
isGLWidget = 1;
@@ -220,6 +221,7 @@ public:
#ifdef Q_OS_SYMBIAN
void recreateEglSurface();
WId eglSurfaceWindowId;
+ bool surfaceSizeInitialized : 1;
#endif
};