mirror of https://github.com/PCSX2/pcsx2.git
Vulkan/SwapChain: Fix crash on fullscreen toggle with Mac
This commit is contained in:
parent
9989daec94
commit
bec9b34f54
|
@ -78,6 +78,9 @@ static bool CreateMetalLayer(WindowInfo* wi)
|
|||
return false;
|
||||
}
|
||||
|
||||
// This needs to be retained, otherwise we double release below.
|
||||
msgsend<void, id>(layer, "retain");
|
||||
|
||||
// [view setWantsLayer:YES]
|
||||
msgsend<void, id, BOOL>(view, "setWantsLayer:", YES);
|
||||
|
||||
|
|
Loading…
Reference in New Issue