summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/TransformUnit.cpp
diff options
context:
space:
mode:
authorPreston Smith <preston.s1993@gmail.com>2016-08-31 02:44:36 -0500
committerPreston Smith <preston.s1993@gmail.com>2016-08-31 06:40:50 -0500
commit94cbe0c12ade07c5ae2a1eaf980ecea1829d0bf5 (patch)
treec1391aceec02c1367e3c6121118c770c84fc8aac /Source/Core/VideoBackends/Software/TransformUnit.cpp
parente6ccd0729f80a54b29069de5b72ee558e04fb964 (diff)
Comments
Diffstat (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/TransformUnit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp
index 3283bdaf51..38734fa17c 100644
--- a/Source/Core/VideoBackends/Software/TransformUnit.cpp
+++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp
@@ -180,7 +180,9 @@ static void TransformTexCoordRegular(const TexMtxInfo& texinfo, int coordNum, bo
}
}
- // TODO write comment
+ // When q is 0, the GameCube appears to have a special case
+ // This can be seen in devkitPro's neheGX Lesson08 example for Wii
+ // Makes differences in Rogue Squadron 3 (Hoth sky) and The Last Story (shadow culling)
if (dst->z == 0.0f)
{
dst->x = MathUtil::Clamp(dst->x / 2.0f, -1.0f, 1.0f);