SW/Rasterizer: Use RAS1_IREF::getTexCoord and getTexMap

This commit is contained in:
Pokechu22 2021-12-26 16:16:13 -08:00
parent ae0fcd9a9f
commit 4206ac243b
1 changed files with 2 additions and 5 deletions

View File

@ -286,13 +286,10 @@ 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 & 7;
indref >>= 3;
u32 texcoord = indref & 7;
indref >>= 3;
u32 texmap = bpmem.tevindref.getTexMap(i);
u32 texcoord = bpmem.tevindref.getTexCoord(i);
CalculateLOD(&rasterBlock.IndirectLod[i], &rasterBlock.IndirectLinear[i], texmap, texcoord);
}