Tie QPlatformOpenGLContext to its QOpenGLContext before initializing
So that the context can be referenced during initialization. Change-Id: I9ec69b2431ba1ac6256cb2e969a76f515497e247 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
6bd35e4708
commit
e0a486c77d
@ -612,8 +612,8 @@ bool QOpenGLContext::create()
|
||||
d->platformGLContext = QGuiApplicationPrivate::platformIntegration()->createPlatformOpenGLContext(this);
|
||||
if (!d->platformGLContext)
|
||||
return false;
|
||||
d->platformGLContext->initialize();
|
||||
d->platformGLContext->setContext(this);
|
||||
d->platformGLContext->initialize();
|
||||
if (!d->platformGLContext->isSharing())
|
||||
d->shareContext = 0;
|
||||
d->shareGroup = d->shareContext ? d->shareContext->shareGroup() : new QOpenGLContextGroup;
|
||||
|
Loading…
Reference in New Issue
Block a user