Skip to content

Commit

Permalink
Remove a statement that assigns the d3d9 device's clientside state ca…
Browse files Browse the repository at this point in the history
…che to a default value during a reset. This was destroying the device's viewport data which can persist across a reset.
  • Loading branch information
nv-ajaus committed Apr 30, 2024
1 parent 1163038 commit 03965f8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/client/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ HRESULT Direct3DDevice9Ex_LSS<EnableSync>::Reset(D3DPRESENT_PARAMETERS* pPresent
BRIDGE_DEVICE_LOCKGUARD();
// Clear all device state and release implicit/internal objects
releaseInternalObjects();
m_state = BaseDirect3DDevice9Ex_LSS::State();
// Reset all device state to default values and init implicit/internal objects
ResetState();
const auto presParam = Direct3DSwapChain9_LSS::sanitizePresentationParameters(*pPresentationParameters, getCreateParams());
Expand Down

0 comments on commit 03965f8

Please sign in to comment.