diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-11-04 11:16:58 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2018-11-04 11:19:28 +0200 |
commit | 07aee14dd775397156056a9ff8526b586aaabef8 (patch) | |
tree | 9b416fe2963e1a52e4b8baf0e279d67f1a234bca | |
parent | cfce8de0b59e06c6e7fcf3579557525aa9062534 (diff) |
Fix initial blank screen on macOS Mojave (except splash).
-rw-r--r-- | platform/osx/os_osx.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index b0fdd010ab..985811e166 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -365,6 +365,8 @@ static Vector2 get_mouse_pos(NSPoint locationInWindow, CGFloat backingScaleFacto bool imeMode; } - (void)cancelComposition; +- (BOOL)wantsUpdateLayer; +- (void)updateLayer; @end @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 { self = [super init]; trackingArea = nil; |