summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-10 21:46:47 +0100
committerGitHub <noreply@github.com>2018-11-10 21:46:47 +0100
commit54d33fabd1e2dd6f86edca7f4c584c992f23c516 (patch)
tree45540934721f1d22b270b6e248ffd5a549af0f3d
parent5ec30ba096fdecac25415c1fe85e22e714881cac (diff)
parent30852d023789aefcdbefcacb0c81332945d3dcee (diff)
Merge pull request #23618 from bruvzg/macos_spash_fix
[macOS] Fix blank splash screen
-rw-r--r--platform/osx/os_osx.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index 985811e166..81dc861f3f 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -326,7 +326,6 @@ static Vector2 get_mouse_pos(NSPoint locationInWindow, CGFloat backingScaleFacto
- (void)windowDidBecomeKey:(NSNotification *)notification {
//_GodotInputWindowFocus(window, GL_TRUE);
//_GodotPlatformSetCursorMode(window, window->cursorMode);
- [OS_OSX::singleton->context update];
if (OS_OSX::singleton->get_main_loop()) {
get_mouse_pos(
@@ -1238,6 +1237,7 @@ Error OS_OSX::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
ERR_FAIL_COND_V(window_object == nil, ERR_UNAVAILABLE);
window_view = [[GodotContentView alloc] init];
+ [window_view setWantsLayer:TRUE];
float displayScale = 1.0;
if (is_hidpi_allowed()) {