summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Rasterizer.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-08-29 01:37:36 -0400
committerGitHub <noreply@github.com>2022-08-29 01:37:36 -0400
commit6d61e6a60135fa4faa849a757d29e5c26d8c8374 (patch)
tree3072ba4f35a6badc5124f11fda15d9c388371f59 /Source/Core/VideoBackends/Software/Rasterizer.cpp
parent681bbf7696bcf0be8994cab5c67daeea0b651586 (diff)
parente04d23e086354263fea9a1dade3de1c7d81f50f9 (diff)
Merge pull request #11016 from Pokechu22/software-indirect-texture-bug
Software/Rasterizer: Fix indirect stage using texture coordinates/maps >= 4
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp
index b7170527d5..2a341d8093 100644
--- a/Source/Core/VideoBackends/Software/Rasterizer.cpp
+++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp
@@ -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);