mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Use xor to swap bit in depth mask.
This commit is contained in:
parent
1bc6f9660a
commit
bd5d9d90c9
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue