Merge pull request #40562 from nekomatata/osxcross-vulkan-layer
Fix Vulkan layer creation when compiling with OSXCross
This commit is contained in:
commit
f6b6d51052
1 changed files with 1 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue