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>bb10
parent
45b76fc4ea
commit
b7aaee0026
|
|
@ -332,11 +332,8 @@ bool QIOSContext::verifyGraphicsHardwareAvailability()
|
|||
);
|
||||
});
|
||||
|
||||
if (applicationBackgrounded) {
|
||||
static const char warning[] = "OpenGL ES calls are not allowed while an application is backgrounded";
|
||||
Q_ASSERT_X(!applicationBackgrounded, "QIOSContext", warning);
|
||||
qCWarning(lcQpaGLContext, warning);
|
||||
}
|
||||
if (applicationBackgrounded)
|
||||
qCWarning(lcQpaGLContext, "OpenGL ES calls are not allowed while an application is backgrounded");
|
||||
|
||||
return !applicationBackgrounded;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue