summaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2020-07-21 09:05:53 +0200
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2020-07-21 12:37:20 +0200
commitce34b77c4a1c9c764f2b33f4ad03284174a65e1f (patch)
treef321e33ef34b25a3eeff27d92f1d7360d653a752 /platform/osx
parente060a281838128f80f8084ea92774fcd8f5c643a (diff)
Fix MoltenVK layer creation when compiling with OSXCross
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/display_server_osx.mm4
1 files changed, 1 insertions, 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];