summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_egl.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-08-17 13:58:48 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-08-17 13:58:48 (GMT)
commitff6f17c92ad1bfa898bc89a5ccb65361d443c591 (patch)
treef0ac9ead3755b886975dada5c977e969600526fd /src/opengl/qgl_egl.cpp
parentcd1b5d933575fb801ad3014f3d7fd7c268a362d1 (diff)
parent1970e2d46656db8178636e06c82287f536b626c7 (diff)
downloadQt-ff6f17c92ad1bfa898bc89a5ccb65361d443c591.zip
Qt-ff6f17c92ad1bfa898bc89a5ccb65361d443c591.tar.gz
Qt-ff6f17c92ad1bfa898bc89a5ccb65361d443c591.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'src/opengl/qgl_egl.cpp')
-rw-r--r--src/opengl/qgl_egl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp
index 3763926..a154325 100644
--- a/src/opengl/qgl_egl.cpp
+++ b/src/opengl/qgl_egl.cpp
@@ -240,6 +240,7 @@ void QGLContextPrivate::destroyEglSurfaceForDevice()
if (QGLWidget *wgl = qobject_cast<QGLWidget *>(w)) {
if (wgl->d_func()->eglSurfaceWindowId != wgl->winId()) {
qWarning("WARNING: Potential EGL surface leak! Not destroying surface.");
+ eglSurface = EGL_NO_SURFACE;
return;
}
}