Commit 49f616a4 authored by jehan's avatar jehan
Browse files

IOS: disable GL drawing until state is Active

parent 80899c57
......@@ -128,7 +128,7 @@
- (void)drawView {
/* no opengl es call made when in background */
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground)
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive)
return;
if([lock tryLock]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment