summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-03 13:05:21 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-03 13:07:58 +0200
commitcc2de6455eeaf28515aedace4faa7322e326dbfd (patch)
treecbd8488d82f2d552b984b828d2d60fc6a74b839e /src/opengl
parent0f0aaba318cd440e64eaf8fe0bef8e0004506309 (diff)
Fixed reparenting OpenGL widgets on Windows.
Task-number: 260697 Reviewed-by: Trond
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 1d765f8eb1..2cf3d63a09 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3533,12 +3533,7 @@ bool QGLWidget::event(QEvent *e)
#elif defined(Q_WS_WIN)
if (e->type() == QEvent::ParentChange) {
QGLContext *newContext = new QGLContext(d->glcx->requestedFormat(), this);
- QList<const QGLContext *> shares = qgl_share_reg()->shares(d->glcx);
- setContext(newContext);
- for (int i = 0; i < shares.size(); ++i) {
- if (newContext != shares.at(i))
- qgl_share_reg()->addShare(newContext, shares.at(i));
- }
+ setContext(newContext, d->glcx);
// the overlay needs to be recreated as well
delete d->olcx;