mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
cmd/ebitenmobile: Ensure that rendering never happens on background
This commit is contained in:
parent
31e0721973
commit
7547207e2d
@ -186,16 +186,18 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)glkView:(GLKView*)view drawInRect:(CGRect)rect {
|
- (void)glkView:(GLKView*)view drawInRect:(CGRect)rect {
|
||||||
if (error_) {
|
@synchronized(self) {
|
||||||
return;
|
if (error_) {
|
||||||
}
|
return;
|
||||||
NSError* err = nil;
|
}
|
||||||
EbitenmobileviewUpdate(&err);
|
NSError* err = nil;
|
||||||
if (err != nil) {
|
EbitenmobileviewUpdate(&err);
|
||||||
[self performSelectorOnMainThread:@selector(onErrorOnGameUpdate:)
|
if (err != nil) {
|
||||||
withObject:err
|
[self performSelectorOnMainThread:@selector(onErrorOnGameUpdate:)
|
||||||
waitUntilDone:NO];
|
withObject:err
|
||||||
error_ = true;
|
waitUntilDone:NO];
|
||||||
|
error_ = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user