From c1041cfff2517bf2cd60d4b613ee5e16d44daa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 26 Dec 2012 09:23:15 +0100 Subject: [PATCH] Apparently RECTANGLES shouldn't flip that way. --- GPU/GLES/TransformPipeline.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index 8935422d0a..7cbd383ebf 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -298,8 +298,10 @@ static void SwapUVs(TransformedVertex &a, TransformedVertex &b) { static void RotateUVs(TransformedVertex v[4]) { if (v[0].y < v[2].y && v[0].x > v[2].x) { - SwapUVs(v[0], v[2]); + // This appears to be wrong. + // SwapUVs(v[0], v[2]); } else if (v[0].y > v[2].y && v[0].x < v[2].x) { + // This works fine in Star Soldier. SwapUVs(v[1], v[3]); } }