mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-14 08:25:41 -04:00
Vulkan: Fix crash when device creation fails
This commit is contained in:
parent
1d4b5e22cb
commit
da180a1c4f
@ -39,7 +39,9 @@ Context::Context(VkInstance instance, VkPhysicalDevice physical_device, bool own
|
|||||||
|
|
||||||
Context::~Context()
|
Context::~Context()
|
||||||
{
|
{
|
||||||
|
if (m_device != VK_NULL_HANDLE)
|
||||||
WaitForGPUIdle();
|
WaitForGPUIdle();
|
||||||
|
|
||||||
DestroyRenderPassCache();
|
DestroyRenderPassCache();
|
||||||
DestroyGlobalDescriptorPool();
|
DestroyGlobalDescriptorPool();
|
||||||
DestroyCommandBuffers();
|
DestroyCommandBuffers();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user