From 7d5ae032199b03927a0b94dfa894c0194e372566 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 16 Dec 2020 13:09:45 -0800 Subject: [PATCH] Software: Always divide the texture coordinates by q. Equivalent to da43f9a15 for the software renderer. --- Source/Core/VideoBackends/Software/Rasterizer.cpp | 9 +++------ 1 file 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;