diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-11-26 15:59:30 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-11-26 16:06:05 +0100 |
commit | 71abe300263d9f6bcd6e061e889a58111c48f92a (patch) | |
tree | 1d56f5244b8336de0b64e6e3131b8cedb514be6a /src/gui/kernel/qplatformglcontext_qpa.cpp | |
parent | 896c51e4d41a7fee06a1601f1b25746f9f98be88 (diff) |
Make QtOpenGL use shared contextexts on Lighthouse
Diffstat (limited to 'src/gui/kernel/qplatformglcontext_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformglcontext_qpa.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformglcontext_qpa.cpp b/src/gui/kernel/qplatformglcontext_qpa.cpp index 5d2faf10a5..14bd71815a 100644 --- a/src/gui/kernel/qplatformglcontext_qpa.cpp +++ b/src/gui/kernel/qplatformglcontext_qpa.cpp @@ -180,7 +180,11 @@ void QPlatformGLContext::setQGLContextHandle(void *handle,void (*qGLContextDelet void QPlatformGLContext::deleteQGLContext() { Q_D(QPlatformGLContext); - d->qGLContextDeleteFunction(d->qGLContextHandle); + if (d->qGLContextDeleteFunction && d->qGLContextHandle) { + d->qGLContextDeleteFunction(d->qGLContextHandle); + d->qGLContextDeleteFunction = 0; + d->qGLContextHandle = 0; + } } /*! |