1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[d3d9] Only look at the last bit for D3DSAMP_SRGBTEXTURE

This commit is contained in:
Georg Lehmann 2021-08-07 14:56:46 +02:00 committed by Joshie
parent a1fbcf35de
commit 973678e6bf

View File

@ -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]);