Fixed the winding order of triangles in SpriteBatches and ParticleSystems.

This commit is contained in:
Alex Szpakowski
2015-03-04 16:03:01 -04:00
parent 4263de89ab
commit 4fa5ab4a07
5 changed files with 20 additions and 21 deletions
+2 -2
View File
@@ -355,8 +355,8 @@ void Polyline::draw()
indices[i * 6 + 2] = GLushort(i * 4 + 2);
// Second triangle.
indices[i * 6 + 3] = GLushort(i * 4 + 1);
indices[i * 6 + 4] = GLushort(i * 4 + 2);
indices[i * 6 + 3] = GLushort(i * 4 + 2);
indices[i * 6 + 4] = GLushort(i * 4 + 1);
indices[i * 6 + 5] = GLushort(i * 4 + 3);
}
}