mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14: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:
parent
9fdd7bf789
commit
bd40b05720
@ -305,6 +305,10 @@ namespace dxvk {
|
|||||||
|
|
||||||
m_device->presentImage(m_presenter,
|
m_device->presentImage(m_presenter,
|
||||||
sync.present, &m_presentStatus);
|
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