summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Rasterizer.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2020-12-16 13:09:45 -0800
committerPokechu22 <Pokechu022@gmail.com>2021-02-12 16:37:47 -0800
commit7d5ae032199b03927a0b94dfa894c0194e372566 (patch)
treeecd06ac3ee2e3f3ca059ca8d86225b6d206287bf /Source/Core/VideoBackends/Software/Rasterizer.cpp
parenta2fa89b15ef67eea63ef6a3c7e0cc0e3629ea71e (diff)
Software: Always divide the texture coordinates by q.
Equivalent to da43f9a15 for the software renderer.
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Rasterizer.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp
index 460188e20e..394bfea41e 100644
--- a/Source/Core/VideoBackends/Software/Rasterizer.cpp
+++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp
@@ -228,12 +228,9 @@ static void BuildBlock(s32 blockX, s32 blockY)
for (unsigned int i = 0; i < bpmem.genMode.numtexgens; i++)
{
float projection = invW;
- if (xfmem.texMtxInfo[i].projection)
- {
- float q = TexSlopes[i][2].GetValue(dx, dy) * invW;
- if (q != 0.0f)
- projection = invW / q;
- }
+ float q = TexSlopes[i][2].GetValue(dx, dy) * invW;
+ if (q != 0.0f)
+ projection = invW / q;
pixel.Uv[i][0] = TexSlopes[i][0].GetValue(dx, dy) * projection;
pixel.Uv[i][1] = TexSlopes[i][1].GetValue(dx, dy) * projection;