[d3d9] Fix losing auto depth stencil surface

This commit is contained in:
Robin Kertels 2023-06-13 22:07:45 +02:00 committed by Joshie
parent 8f740c53b4
commit b8d36eeacc
1 changed files with 2 additions and 2 deletions

View File

@ -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);