1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[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.
This commit is contained in:
Philip Rebohle 2020-01-15 12:13:57 +01:00 committed by Philip Rebohle
parent 41a91cbae6
commit c911784bb8

View File

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