summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformglcontext_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-11-26 15:59:30 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2010-11-26 16:06:05 +0100
commit71abe300263d9f6bcd6e061e889a58111c48f92a (patch)
tree1d56f5244b8336de0b64e6e3131b8cedb514be6a /src/gui/kernel/qplatformglcontext_qpa.cpp
parent896c51e4d41a7fee06a1601f1b25746f9f98be88 (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.cpp6
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;
+ }
}
/*!