diff options
| author | Preston Smith <preston.s1993@gmail.com> | 2016-07-23 21:30:39 -0500 |
|---|---|---|
| committer | Preston Smith <preston.s1993@gmail.com> | 2016-08-30 18:33:27 -0500 |
| commit | 89b1d613cceb60fa69ce48c53037c08807c45cfc (patch) | |
| tree | 31c4b1e7b69e125084fe89f87f5f4f29607b4976 /Source/Core/VideoBackends/Software/TransformUnit.cpp | |
| parent | e0a1ab90274ac09d8164883c5d577f1e2778d14d (diff) | |
Remove else in software renderer
Diffstat (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/TransformUnit.cpp | 14 |
1 files 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); } } |
