From 0ce906c28c4d50c14fe29fe0e4f59df169f7e4dc Mon Sep 17 00:00:00 2001 From: narzoul Date: Sun, 30 Jun 2024 13:44:26 +0200 Subject: [PATCH] Fixed texture stage state updates not flushing correctly Fixes texture filtering mode of trees in Carnivores. --- DDrawCompat/D3dDdi/DeviceState.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/DDrawCompat/D3dDdi/DeviceState.cpp b/DDrawCompat/D3dDdi/DeviceState.cpp index c387337..ae3fa33 100644 --- a/DDrawCompat/D3dDdi/DeviceState.cpp +++ b/DDrawCompat/D3dDdi/DeviceState.cpp @@ -679,6 +679,7 @@ namespace D3dDdi HRESULT DeviceState::pfnSetTextureStageState(const D3DDDIARG_TEXTURESTAGESTATE* data) { + m_changedStates |= CS_TEXTURE_STAGE; if (D3DTSS_ADDRESS == data->State) { m_app.textureStageState[data->Stage][D3DDDITSS_ADDRESSU] = data->Value;