From 89b1d613cceb60fa69ce48c53037c08807c45cfc Mon Sep 17 00:00:00 2001 From: Preston Smith Date: Sat, 23 Jul 2016 21:30:39 -0500 Subject: [PATCH] Remove else in software renderer --- .../Core/VideoBackends/Software/TransformUnit.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index baddcb2529..6e590dd2e9 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -183,18 +183,8 @@ static void TransformTexCoordRegular(const TexMtxInfo& texinfo, int coordNum, bo // TODO write comment if (dst->z == 0.0f) { - if (mat[8] != 0.0f || (xfmem.dualTexTrans.enabled && postMat[8] != 0.0f) || mat[9] != 0.0f || - (xfmem.dualTexTrans.enabled && postMat[9] != 0.0f)) - { - // TODO test this case more - dst->x = 0.0f; - dst->y = 0.0f; - } - else - { - dst->x = MathUtil::Clamp(dst->x / 2.0f, -1.0f, 1.0f); - dst->y = MathUtil::Clamp(dst->y / 2.0f, -1.0f, 1.0f); - } + dst->x = MathUtil::Clamp(dst->x / 2.0f, -1.0f, 1.0f); + dst->y = MathUtil::Clamp(dst->y / 2.0f, -1.0f, 1.0f); } }