iOS: Remove assert when doing GL rendering in the background
Fixes: QTBUG-76961 Change-Id: If2212601dbb867dd7ceb826b867bb24d302f86df Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit b7aaee002677caf411190bbc6ea7f18a28a71360)
This commit is contained in:
parent
6a60192ac0
commit
c92ca4a41f
@ -332,11 +332,8 @@ bool QIOSContext::verifyGraphicsHardwareAvailability()
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (applicationBackgrounded) {
|
if (applicationBackgrounded)
|
||||||
static const char warning[] = "OpenGL ES calls are not allowed while an application is backgrounded";
|
qCWarning(lcQpaGLContext, "OpenGL ES calls are not allowed while an application is backgrounded");
|
||||||
Q_ASSERT_X(!applicationBackgrounded, "QIOSContext", warning);
|
|
||||||
qCWarning(lcQpaGLContext, warning);
|
|
||||||
}
|
|
||||||
|
|
||||||
return !applicationBackgrounded;
|
return !applicationBackgrounded;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user