summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-22 14:16:31 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-22 14:38:10 (GMT)
commit8f34510750bb125ae749863d0174d96c9e0aabb2 (patch)
treed1aca4ed17cc5952c594800ee943d82a4e9f651c /src/opengl/qgl.cpp
parent9f101a33b44424e22f50dcd01eeb90ac7c835f21 (diff)
downloadQt-8f34510750bb125ae749863d0174d96c9e0aabb2.zip
Qt-8f34510750bb125ae749863d0174d96c9e0aabb2.tar.gz
Qt-8f34510750bb125ae749863d0174d96c9e0aabb2.tar.bz2
Make sure recreateEglSurface creates a surface if there isn't one
If QGLWidgetPrivate::recreateEglSurface is called after a surface has been deleted, it should always create a new surface and ignore the fact that the window ID may not have changed. Reviewed-By: Trond
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 394bcbc..72ed6be 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3984,7 +3984,7 @@ bool QGLWidget::event(QEvent *e)
if ((e->type() == QEvent::ParentChange) || (e->type() == QEvent::WindowStateChange)) {
// The window may have been re-created during re-parent or state change - if so, the EGL
// surface will need to be re-created.
- d->recreateEglSurface(false);
+ d->recreateEglSurface();
}
#endif
#elif defined(Q_WS_WIN)