1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Synchronize presentation when destroying swap chain

Otherwise, we might destroy the presenter before the CS thread
actually issues the present operation, and the waitForIdle has
not the desired effect.
This commit is contained in:
Philip Rebohle 2019-11-26 23:51:31 +01:00
parent 9ccad0d197
commit c9c6b1886b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -41,6 +41,7 @@ namespace dxvk {
D3D11SwapChain::~D3D11SwapChain() { D3D11SwapChain::~D3D11SwapChain() {
m_device->waitForSubmission(&m_presentStatus);
m_device->waitForIdle(); m_device->waitForIdle();
if (m_backBuffer) if (m_backBuffer)