Merge pull request #40562 from nekomatata/osxcross-vulkan-layer

Fix Vulkan layer creation when compiling with OSXCross
This commit is contained in:
Rémi Verschelde 2020-07-21 12:57:52 +02:00 committed by GitHub
commit f6b6d51052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];