|
|
@@ -1766,11 +1766,13 @@ VK_IMPORT_DEVICE
|
|
|
vkDestroy(m_pipelineLayout);
|
|
|
vkDestroy(m_descriptorSetLayout);
|
|
|
vkDestroy(m_descriptorPool);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::CommandBuffersCreated:
|
|
|
vkFreeCommandBuffers(m_device, m_commandPool, BX_COUNTOF(m_commandBuffers), m_commandBuffers);
|
|
|
vkDestroy(m_commandPool);
|
|
|
vkDestroy(m_fence);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::SwapchainCreated:
|
|
|
for (uint32_t ii = 0; ii < BX_COUNTOF(m_backBufferColorImageView); ++ii)
|
|
|
@@ -1791,15 +1793,19 @@ VK_IMPORT_DEVICE
|
|
|
}
|
|
|
}
|
|
|
vkDestroy(m_swapchain);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::SurfaceCreated:
|
|
|
vkDestroySurfaceKHR(m_instance, m_surface, m_allocatorCb);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::RenderPassCreated:
|
|
|
vkDestroy(m_renderPass);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::DeviceCreated:
|
|
|
vkDestroyDevice(m_device, m_allocatorCb);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::InstanceCreated:
|
|
|
if (VK_NULL_HANDLE != m_debugReportCallback)
|
|
|
@@ -1808,12 +1814,14 @@ VK_IMPORT_DEVICE
|
|
|
}
|
|
|
|
|
|
vkDestroyInstance(m_instance, m_allocatorCb);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::LoadedVulkan1:
|
|
|
bx::dlclose(m_vulkan1dll);
|
|
|
m_vulkan1dll = NULL;
|
|
|
m_allocatorCb = NULL;
|
|
|
unloadRenderDoc(m_renderdocdll);
|
|
|
+ BX_FALLTHROUGH;
|
|
|
|
|
|
case ErrorState::Default:
|
|
|
break;
|