mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[d3d9] Use m_activeTexture mask for SRGB check
This commit is contained in:
parent
1823a098a1
commit
674f008e23
@ -3660,7 +3660,7 @@ namespace dxvk {
|
|||||||
|| Type == D3DSAMP_MAXMIPLEVEL
|
|| Type == D3DSAMP_MAXMIPLEVEL
|
||||||
|| Type == D3DSAMP_BORDERCOLOR)
|
|| Type == D3DSAMP_BORDERCOLOR)
|
||||||
m_dirtySamplerStates |= 1u << StateSampler;
|
m_dirtySamplerStates |= 1u << StateSampler;
|
||||||
else if (Type == D3DSAMP_SRGBTEXTURE && m_state.textures[StateSampler] != nullptr)
|
else if (Type == D3DSAMP_SRGBTEXTURE && (m_activeTextures & (1u << StateSampler)))
|
||||||
m_dirtyTextures |= 1u << StateSampler;
|
m_dirtyTextures |= 1u << StateSampler;
|
||||||
|
|
||||||
constexpr DWORD Fetch4Enabled = MAKEFOURCC('G', 'E', 'T', '4');
|
constexpr DWORD Fetch4Enabled = MAKEFOURCC('G', 'E', 'T', '4');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user