Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11016 from Pokechu22/software-indirect-texture-bug
Software/Rasterizer: Fix indirect stage using texture coordinates/maps >= 4
  • Loading branch information
JMC47 committed Aug 29, 2022
2 parents 681bbf7 + e04d23e commit 6d61e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoBackends/Software/Rasterizer.cpp
Expand Up @@ -291,9 +291,9 @@ static void BuildBlock(s32 blockX, s32 blockY)
u32 indref = bpmem.tevindref.hex;
for (unsigned int i = 0; i < bpmem.genMode.numindstages; i++)
{
u32 texmap = indref & 3;
u32 texmap = indref & 7;
indref >>= 3;
u32 texcoord = indref & 3;
u32 texcoord = indref & 7;
indref >>= 3;

CalculateLOD(&rasterBlock.IndirectLod[i], &rasterBlock.IndirectLinear[i], texmap, texcoord);
Expand Down

0 comments on commit 6d61e6a

Please sign in to comment.