[macOS] Fix blank splash screen

This commit is contained in:
bruvzg 2018-11-09 21:47:23 +02:00
parent d4c62e714c
commit 30852d0237
No known key found for this signature in database
GPG Key ID: 89DD917D9CE4218D
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,6 @@ static Vector2 get_mouse_pos(NSPoint locationInWindow, CGFloat backingScaleFacto
- (void)windowDidBecomeKey:(NSNotification *)notification { - (void)windowDidBecomeKey:(NSNotification *)notification {
//_GodotInputWindowFocus(window, GL_TRUE); //_GodotInputWindowFocus(window, GL_TRUE);
//_GodotPlatformSetCursorMode(window, window->cursorMode); //_GodotPlatformSetCursorMode(window, window->cursorMode);
[OS_OSX::singleton->context update];
if (OS_OSX::singleton->get_main_loop()) { if (OS_OSX::singleton->get_main_loop()) {
get_mouse_pos( 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); ERR_FAIL_COND_V(window_object == nil, ERR_UNAVAILABLE);
window_view = [[GodotContentView alloc] init]; window_view = [[GodotContentView alloc] init];
[window_view setWantsLayer:TRUE];
float displayScale = 1.0; float displayScale = 1.0;
if (is_hidpi_allowed()) { if (is_hidpi_allowed()) {