Fix initial blank screen on macOS Mojave (except splash).

This commit is contained in:
bruvzg 2018-11-04 11:16:58 +02:00
parent cfce8de0b5
commit 07aee14dd7
No known key found for this signature in database
GPG Key ID: 89DD917D9CE4218D
1 changed files with 10 additions and 0 deletions

View File

@ -365,6 +365,8 @@ static Vector2 get_mouse_pos(NSPoint locationInWindow, CGFloat backingScaleFacto
bool imeMode; bool imeMode;
} }
- (void)cancelComposition; - (void)cancelComposition;
- (BOOL)wantsUpdateLayer;
- (void)updateLayer;
@end @end
@implementation GodotContentView @implementation GodotContentView
@ -375,6 +377,14 @@ static Vector2 get_mouse_pos(NSPoint locationInWindow, CGFloat backingScaleFacto
} }
} }
- (BOOL)wantsUpdateLayer {
return YES;
}
- (void)updateLayer {
[OS_OSX::singleton->context update];
}
- (id)init { - (id)init {
self = [super init]; self = [super init];
trackingArea = nil; trackingArea = nil;