summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-07-08 10:19:01 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2010-07-08 10:19:01 +0200
commit13e75dd03d2fb8a1f01406c30520cef80cb2800a (patch)
treee77c953ce58869e4c8f14f24bbd763a36b1e3cd5 /src/opengl/qgl_qpa.cpp
parent2b384a4df14fab0f377b04df24b67ee7634f8403 (diff)
Fix deletion of QPlatformGLContext
it is owned by the QPlatformWindow, and should thus be delted by it, even for QGLContext
Diffstat (limited to 'src/opengl/qgl_qpa.cpp')
-rw-r--r--src/opengl/qgl_qpa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp
index be2ef875e0..aa124fe138 100644
--- a/src/opengl/qgl_qpa.cpp
+++ b/src/opengl/qgl_qpa.cpp
@@ -84,7 +84,7 @@ void QGLContext::reset()
doneCurrent();
if (d->platformContext) {
- delete d->platformContext;
+ //dont delete. This will be done by the platform
d->platformContext = 0;
}