diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-08-10 09:50:16 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-08-12 13:33:39 (GMT) |
commit | c622cb1c9c11ef6b51f1e2da61f94b83650f6703 (patch) | |
tree | dc261d621cc52d0cf3d4b4b2d84c69f6ff3eaa35 | |
parent | dd916743ad6182b38db40226e82b46596942ba39 (diff) | |
download | Qt-c622cb1c9c11ef6b51f1e2da61f94b83650f6703.zip Qt-c622cb1c9c11ef6b51f1e2da61f94b83650f6703.tar.gz Qt-c622cb1c9c11ef6b51f1e2da61f94b83650f6703.tar.bz2 |
Fixed autotest failure in tst_qgl::clipTest.
Change fb00d5003ac5d91953a95d8164180f8f56a2b0f2 introduced a slight
behavioural change by leaving the surface handle dangling. We need
to unset the surface handle even if we don't own it to make sure we
don't access it again.
Reviewed-by: Gunnar Sletta
-rw-r--r-- | src/opengl/qgl_egl.cpp | 1 |
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; } } |