diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-09-03 11:05:21 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-09-03 11:07:58 (GMT) |
commit | cc2de6455eeaf28515aedace4faa7322e326dbfd (patch) | |
tree | cbd8488d82f2d552b984b828d2d60fc6a74b839e /src/opengl | |
parent | 0f0aaba318cd440e64eaf8fe0bef8e0004506309 (diff) | |
download | Qt-cc2de6455eeaf28515aedace4faa7322e326dbfd.zip Qt-cc2de6455eeaf28515aedace4faa7322e326dbfd.tar.gz Qt-cc2de6455eeaf28515aedace4faa7322e326dbfd.tar.bz2 |
Fixed reparenting OpenGL widgets on Windows.
Task-number: 260697
Reviewed-by: Trond
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 1d765f8..2cf3d63 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; |