Fix MoltenVK layer creation when compiling with OSXCross
This commit is contained in:
parent
e060a28183
commit
ce34b77c4a
@ -3492,9 +3492,7 @@ DisplayServerOSX::WindowID DisplayServerOSX::_create_window(WindowMode p_mode, c
|
|||||||
wd.window_view = [[GodotContentView alloc] init];
|
wd.window_view = [[GodotContentView alloc] init];
|
||||||
ERR_FAIL_COND_V_MSG(wd.window_view == nil, INVALID_WINDOW_ID, "Can't create a window view");
|
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];
|
[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 setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||||
[wd.window_object setContentView:wd.window_view];
|
[wd.window_object setContentView:wd.window_view];
|
||||||
|
Loading…
Reference in New Issue
Block a user