summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-02-01 15:01:57 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-02-07 07:22:35 (GMT)
commita39b6c89efe78ab74767f70d60a2a9238a31c34a (patch)
treea6cefa2ac75dc392cb08be82f930e9fe6474e6d6 /src/opengl/qgl.cpp
parent6d3b5e1cdb3858ab8fe650493bf36a2b5260da1d (diff)
downloadQt-a39b6c89efe78ab74767f70d60a2a9238a31c34a.zip
Qt-a39b6c89efe78ab74767f70d60a2a9238a31c34a.tar.gz
Qt-a39b6c89efe78ab74767f70d60a2a9238a31c34a.tar.bz2
Lighthouse: Fix if context isSharing setup for QGLContext
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 0ec3a15..9f31c62 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3310,8 +3310,10 @@ bool QGLContext::create(const QGLContext* shareContext)
QWidgetPrivate *wd = qt_widget_private(static_cast<QWidget *>(d->paintDevice));
wd->usesDoubleBufferedGLContext = d->glFormat.doubleBuffer();
}
+#ifndef Q_WS_QPA //We do this in choose context->setupSharing()
if (d->sharing) // ok, we managed to share
QGLContextGroup::addShare(this, shareContext);
+#endif
return d->valid;
}