From c9c6b1886bf087b4c5180e6ebcface0dc1f71851 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 26 Nov 2019 23:51:31 +0100 Subject: [PATCH] [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. --- src/d3d11/d3d11_swapchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d3d11/d3d11_swapchain.cpp b/src/d3d11/d3d11_swapchain.cpp index 5b38d22f9..37bff463b 100644 --- a/src/d3d11/d3d11_swapchain.cpp +++ b/src/d3d11/d3d11_swapchain.cpp @@ -41,6 +41,7 @@ namespace dxvk { D3D11SwapChain::~D3D11SwapChain() { + m_device->waitForSubmission(&m_presentStatus); m_device->waitForIdle(); if (m_backBuffer)