diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-08 08:19:01 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-08 08:19:01 (GMT) |
commit | 13e75dd03d2fb8a1f01406c30520cef80cb2800a (patch) | |
tree | e77c953ce58869e4c8f14f24bbd763a36b1e3cd5 /src/opengl | |
parent | 2b384a4df14fab0f377b04df24b67ee7634f8403 (diff) | |
download | Qt-13e75dd03d2fb8a1f01406c30520cef80cb2800a.zip Qt-13e75dd03d2fb8a1f01406c30520cef80cb2800a.tar.gz Qt-13e75dd03d2fb8a1f01406c30520cef80cb2800a.tar.bz2 |
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')
-rw-r--r-- | src/opengl/qgl_qpa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index be2ef87..aa124fe 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; } |