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

[d3d11] Recreate swap chain immediately after synchronous present fails

Fully restores pre-1.3 behaviour in case async present is disabled.
Apparently this is necessary to avoid hangs on Nvidia for some reason.
This commit is contained in:
Philip Rebohle 2019-08-06 09:10:39 +02:00
parent 9fdd7bf789
commit bd40b05720
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -305,6 +305,10 @@ namespace dxvk {
m_device->presentImage(m_presenter,
sync.present, &m_presentStatus);
if (m_presentStatus.result != VK_NOT_READY
&& m_presentStatus.result != VK_SUCCESS)
RecreateSwapChain(m_vsync);
}
}