Vulkan: Fix crash when device creation fails
This commit is contained in:
@@ -39,7 +39,9 @@ Context::Context(VkInstance instance, VkPhysicalDevice physical_device, bool own
|
|||||||
|
|
||||||
Context::~Context()
|
Context::~Context()
|
||||||
{
|
{
|
||||||
WaitForGPUIdle();
|
if (m_device != VK_NULL_HANDLE)
|
||||||
|
WaitForGPUIdle();
|
||||||
|
|
||||||
DestroyRenderPassCache();
|
DestroyRenderPassCache();
|
||||||
DestroyGlobalDescriptorPool();
|
DestroyGlobalDescriptorPool();
|
||||||
DestroyCommandBuffers();
|
DestroyCommandBuffers();
|
||||||
|
|||||||
Reference in New Issue
Block a user