Vulkan/SwapChain: Fix crash on fullscreen toggle with Mac

This commit is contained in:
Connor McLaughlin 2022-05-03 19:28:04 +10:00 committed by refractionpcsx2
parent 9989daec94
commit bec9b34f54
1 changed files with 3 additions and 0 deletions

View File

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