From 03965f828fc36ffbe0af0606e7a230cd3be1c77b Mon Sep 17 00:00:00 2001 From: Alexander Jaus Date: Tue, 30 Apr 2024 14:39:03 -0700 Subject: [PATCH] Remove a statement that assigns the d3d9 device's clientside state cache to a default value during a reset. This was destroying the device's viewport data which can persist across a reset. --- src/client/d3d9_device.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/client/d3d9_device.cpp b/src/client/d3d9_device.cpp index 9a73b50..18686f7 100644 --- a/src/client/d3d9_device.cpp +++ b/src/client/d3d9_device.cpp @@ -414,7 +414,6 @@ HRESULT Direct3DDevice9Ex_LSS::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());