From a39b6c89efe78ab74767f70d60a2a9238a31c34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Tue, 1 Feb 2011 16:01:57 +0100 Subject: Lighthouse: Fix if context isSharing setup for QGLContext --- src/opengl/qgl.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(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; } -- cgit v0.12