Merge pull request #11016 from Pokechu22/software-indirect-texture-bug

Software/Rasterizer: Fix indirect stage using texture coordinates/maps >= 4
This commit is contained in:
JMC47 2022-08-29 01:37:36 -04:00 committed by GitHub
commit 6d61e6a601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);