From c911784bb883038bde10483ef7125c3e196764f9 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 15 Jan 2020 12:13:57 +0100 Subject: [PATCH] [d3d9] Synchronize with presentation in D3D9SwapChainEx::Reset Otherwise, the subsequent patches would break if Reset is called while there's still a frame in flight. --- src/d3d9/d3d9_swapchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index bc04ce13..6264a6d3 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -289,6 +289,7 @@ namespace dxvk { D3DDISPLAYMODEEX* pFullscreenDisplayMode) { auto lock = m_parent->LockDevice(); + this->SynchronizePresent(); this->NormalizePresentParameters(pPresentParams); m_dirty |= m_presentParams.BackBufferFormat != pPresentParams->BackBufferFormat