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

[d3d9] Fix texture stage index in stateblocks

Fixes minimap transparency in FHX https://github.com/Joshua-Ashton/d9vk/issues/306
This commit is contained in:
Joshua Ashton 2020-01-23 02:19:18 +00:00
parent 9919ffe5ca
commit 792c74e1d9

View File

@ -254,7 +254,7 @@ namespace dxvk {
for (uint32_t stage = m_captures.textureStages.dword(0); stage; stage &= stage - 1) {
uint32_t stageIdx = bit::tzcnt(stage);
for (uint32_t state = m_captures.textureStageStates[0].dword(0); state; state &= state - 1) {
for (uint32_t state = m_captures.textureStageStates[stageIdx].dword(0); state; state &= state - 1) {
uint32_t stateIdx = bit::tzcnt(state);
dst->SetStateTextureStageState(stageIdx, D3D9TextureStageStateTypes(stateIdx), src->textureStages[stageIdx][stateIdx]);