1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[vulkan] Don't handle SURFACE_LOST in Vulkan presenter

This commit is contained in:
Philip Rebohle 2022-10-27 19:46:45 +02:00
parent 3a9e975a71
commit 49cf0ecf54

View File

@ -103,19 +103,8 @@ namespace dxvk::vk {
VkResult status;
if ((status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
m_device.adapter, m_surface, &caps)) != VK_SUCCESS) {
if (status == VK_ERROR_SURFACE_LOST_KHR) {
// Recreate the surface and try again.
if (m_surface)
destroySurface();
if ((status = createSurface()) != VK_SUCCESS)
return status;
status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
m_device.adapter, m_surface, &caps);
}
if (status != VK_SUCCESS)
return status;
}
m_device.adapter, m_surface, &caps)) != VK_SUCCESS)
return status;
if ((status = getSupportedFormats(formats, desc)) != VK_SUCCESS)
return status;