1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d9] Check correct sampler bitfield when applying/capturing sampler state

This commit is contained in:
Joshua Ashton 2020-02-06 22:37:38 +00:00
parent 8020803340
commit 1f67602b98

View File

@ -202,7 +202,7 @@ namespace dxvk {
for (uint32_t sampler = m_captures.samplers.dword(0); sampler; sampler &= sampler - 1) {
uint32_t samplerIdx = bit::tzcnt(sampler);
for (uint32_t state = m_captures.samplerStates[0].dword(0); state; state &= state - 1) {
for (uint32_t state = m_captures.samplerStates[samplerIdx].dword(0); state; state &= state - 1) {
uint32_t stateIdx = bit::tzcnt(state);
dst->SetStateSamplerState(samplerIdx, D3DSAMPLERSTATETYPE(stateIdx), src->samplerStates[samplerIdx][stateIdx]);