mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-11 22:49:56 +00:00
GS/VK: Fix crash when no device is created and vk is the selected renderer.
This commit is contained in:
@@ -2254,8 +2254,11 @@ void GSDeviceVK::Destroy()
|
||||
|
||||
m_swap_chain.reset();
|
||||
|
||||
DestroySpinResources();
|
||||
DestroyResources();
|
||||
if (m_device != VK_NULL_HANDLE)
|
||||
{
|
||||
DestroySpinResources();
|
||||
DestroyResources();
|
||||
}
|
||||
|
||||
VKShaderCache::Destroy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user