mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[d3d9] Use xor to swap bit in depth mask.
This commit is contained in:
parent
1bc6f9660a
commit
bd5d9d90c9
@ -3783,9 +3783,7 @@ namespace dxvk {
|
|||||||
const bool newDepth = newTexture->IsShadow();
|
const bool newDepth = newTexture->IsShadow();
|
||||||
|
|
||||||
if (oldDepth != newDepth) {
|
if (oldDepth != newDepth) {
|
||||||
m_depthTextures &= ~(1u << StateSampler);
|
m_depthTextures ^= 1u << StateSampler;
|
||||||
if (newDepth)
|
|
||||||
m_depthTextures |= 1u << StateSampler;
|
|
||||||
m_dirtySamplerStates |= 1u << StateSampler;
|
m_dirtySamplerStates |= 1u << StateSampler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user