mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[vulkan] Don't handle SURFACE_LOST in Vulkan presenter
This commit is contained in:
parent
3a9e975a71
commit
49cf0ecf54
1 changed files with 2 additions and 13 deletions
|
@ -103,19 +103,8 @@ namespace dxvk::vk {
|
||||||
VkResult status;
|
VkResult status;
|
||||||
|
|
||||||
if ((status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
|
if ((status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
|
||||||
m_device.adapter, m_surface, &caps)) != VK_SUCCESS) {
|
m_device.adapter, m_surface, &caps)) != VK_SUCCESS)
|
||||||
if (status == VK_ERROR_SURFACE_LOST_KHR) {
|
return status;
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((status = getSupportedFormats(formats, desc)) != VK_SUCCESS)
|
if ((status = getSupportedFormats(formats, desc)) != VK_SUCCESS)
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Add table
Reference in a new issue