mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +01:00
SW/Rasterizer: Use RAS1_IREF::getTexCoord and getTexMap
This commit is contained in:
parent
ae0fcd9a9f
commit
4206ac243b
@ -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++)
|
for (unsigned int i = 0; i < bpmem.genMode.numindstages; i++)
|
||||||
{
|
{
|
||||||
u32 texmap = indref & 7;
|
u32 texmap = bpmem.tevindref.getTexMap(i);
|
||||||
indref >>= 3;
|
u32 texcoord = bpmem.tevindref.getTexCoord(i);
|
||||||
u32 texcoord = indref & 7;
|
|
||||||
indref >>= 3;
|
|
||||||
|
|
||||||
CalculateLOD(&rasterBlock.IndirectLod[i], &rasterBlock.IndirectLinear[i], texmap, texcoord);
|
CalculateLOD(&rasterBlock.IndirectLod[i], &rasterBlock.IndirectLinear[i], texmap, texcoord);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user