mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07: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