From 973678e6bf693230437fbf207c9cfc5b653c8bf5 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 7 Aug 2021 14:56:46 +0200 Subject: [PATCH] [d3d9] Only look at the last bit for D3DSAMP_SRGBTEXTURE --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index f81f1171..aebfa79f 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5761,7 +5761,7 @@ namespace dxvk { DxsoBindingType::DepthImage, uint32_t(shaderSampler.second)); const bool srgb = - m_state.samplerStates[StateSampler][D3DSAMP_SRGBTEXTURE]; + m_state.samplerStates[StateSampler][D3DSAMP_SRGBTEXTURE] & 0x1; D3D9CommonTexture* commonTex = GetCommonTexture(m_state.textures[StateSampler]);