summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_egl.cpp
diff options
context:
space:
mode:
authorJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-08-19 19:33:31 (GMT)
committerJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-08-20 06:16:02 (GMT)
commita68ad8cea58fd3bcbcf4ab5c6708896073c476b2 (patch)
tree4aa31f882b12142229ab7bcc373527e041726a94 /src/opengl/qgl_egl.cpp
parentd129112034d600ea925a4199d8bad72388444335 (diff)
downloadQt-a68ad8cea58fd3bcbcf4ab5c6708896073c476b2.zip
Qt-a68ad8cea58fd3bcbcf4ab5c6708896073c476b2.tar.gz
Qt-a68ad8cea58fd3bcbcf4ab5c6708896073c476b2.tar.bz2
Introduce QtOpenGL module for Symbian.
Task-number: QT-2139 Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/opengl/qgl_egl.cpp')
-rw-r--r--src/opengl/qgl_egl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp
index a154325..ebd1169 100644
--- a/src/opengl/qgl_egl.cpp
+++ b/src/opengl/qgl_egl.cpp
@@ -230,7 +230,7 @@ void QGLContext::swapBuffers() const
void QGLContextPrivate::destroyEglSurfaceForDevice()
{
if (eglSurface != EGL_NO_SURFACE) {
-#ifdef Q_WS_X11
+#if defined(Q_WS_X11) || defined(Q_OS_SYMBIAN)
// Make sure we don't call eglDestroySurface on a surface which
// was created for a different winId. This applies only to QGLWidget
// paint device, so make sure this is the one we're operating on