mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +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:
parent
9fdd7bf789
commit
bd40b05720
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user