Skip to content

Commit

Permalink
[d3d9] Use xor to swap bit in depth mask.
Browse files Browse the repository at this point in the history
  • Loading branch information
DadSchoorse authored and misyltoad committed Sep 10, 2022
1 parent 1bc6f96 commit bd5d9d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bd5d9d9

Please sign in to comment.