1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 13:54:18 +01:00

[d3d9] Clean up SetStateSamplerState

This commit is contained in:
Joshua Ashton 2021-08-09 03:20:06 +01:00 committed by Joshie
parent ea4aa87336
commit 1823a098a1

View File

@ -3644,9 +3644,9 @@ namespace dxvk {
auto& state = m_state.samplerStates;
bool changed = state[StateSampler][Type] != Value;
if (state[StateSampler][Type] == Value)
return D3D_OK;
if (likely(changed)) {
state[StateSampler][Type] = Value;
if (Type == D3DSAMP_ADDRESSU
@ -3684,7 +3684,6 @@ namespace dxvk {
else
m_fetch4 &= ~(1u << StateSampler);
}
}
return D3D_OK;
}