diff --git a/common/Vulkan/SwapChain.cpp b/common/Vulkan/SwapChain.cpp index f68a9c13f8..46f0c13822 100644 --- a/common/Vulkan/SwapChain.cpp +++ b/common/Vulkan/SwapChain.cpp @@ -78,6 +78,9 @@ static bool CreateMetalLayer(WindowInfo* wi) return false; } + // This needs to be retained, otherwise we double release below. + msgsend(layer, "retain"); + // [view setWantsLayer:YES] msgsend(view, "setWantsLayer:", YES);