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:
parent
ea4aa87336
commit
1823a098a1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user