[d3d9] Use xor to swap bit in depth mask.

This commit is contained in:
Georg Lehmann 2022-09-06 00:23:24 +02:00 committed by Joshie
parent 1bc6f9660a
commit bd5d9d90c9
1 changed files with 1 additions and 3 deletions

View File

@ -3783,9 +3783,7 @@ namespace dxvk {
const bool newDepth = newTexture->IsShadow();
if (oldDepth != newDepth) {
m_depthTextures &= ~(1u << StateSampler);
if (newDepth)
m_depthTextures |= 1u << StateSampler;
m_depthTextures ^= 1u << StateSampler;
m_dirtySamplerStates |= 1u << StateSampler;
}