From ce34b77c4a1c9c764f2b33f4ad03284174a65e1f Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Tue, 21 Jul 2020 09:05:53 +0200 Subject: Fix MoltenVK layer creation when compiling with OSXCross --- platform/osx/display_server_osx.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm index 5cc2b25910..baecb260b5 100644 --- a/platform/osx/display_server_osx.mm +++ b/platform/osx/display_server_osx.mm @@ -3492,9 +3492,7 @@ DisplayServerOSX::WindowID DisplayServerOSX::_create_window(WindowMode p_mode, c wd.window_view = [[GodotContentView alloc] init]; ERR_FAIL_COND_V_MSG(wd.window_view == nil, INVALID_WINDOW_ID, "Can't create a window view"); [wd.window_view setWindowID:window_id_counter]; - if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_14) { - [wd.window_view setWantsLayer:TRUE]; - } + [wd.window_view setWantsLayer:TRUE]; [wd.window_object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; [wd.window_object setContentView:wd.window_view]; -- cgit v1.2.3