Apparently RECTANGLES shouldn't flip that way.

This commit is contained in:
Henrik Rydgård 2012-12-26 09:23:15 +01:00
parent 27e8e4c6fb
commit c1041cfff2

View File

@ -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]);
}
}