From b8d36eeaccdbe1196a0183c8d2bbeb9e9d463e6f Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Tue, 13 Jun 2023 22:07:45 +0200 Subject: [PATCH] [d3d9] Fix losing auto depth stencil surface --- src/d3d9/d3d9_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index c37a192e..88eafe58 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -7565,12 +7565,12 @@ namespace dxvk { HRESULT D3D9DeviceEx::InitialReset(D3DPRESENT_PARAMETERS* pPresentationParameters, D3DDISPLAYMODEEX* pFullscreenDisplayMode) { + ResetState(pPresentationParameters); + HRESULT hr = ResetSwapChain(pPresentationParameters, pFullscreenDisplayMode); if (FAILED(hr)) return hr; - ResetState(pPresentationParameters); - Flush(); SynchronizeCsThread(DxvkCsThread::SynchronizeAll);