qopenglcontext not checking for null and failing with platform minimal
- The minimal platform plugin returns null and was causing segfault. Change-Id: Ied262692f77e9801c3d3451de7f21539f7686ca4 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
9cbbd38f22
commit
aa5ff68476
@ -168,6 +168,8 @@ bool QOpenGLContext::create()
|
||||
|
||||
Q_D(QOpenGLContext);
|
||||
d->platformGLContext = QGuiApplicationPrivate::platformIntegration()->createPlatformOpenGLContext(this);
|
||||
if (!d->platformGLContext)
|
||||
return false;
|
||||
d->platformGLContext->setContext(this);
|
||||
if (!d->platformGLContext->isSharing())
|
||||
d->shareContext = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user