Use triangle strips rather than triangle fans when possible.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-02-28 02:32:34 -04:00
parent 9313484fcc
commit faa4a33fe9
6 changed files with 46 additions and 23 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ void Polyline::draw()
indices[i * 6 + 2] = GLushort(i * 4 + 2);
// Second triangle.
indices[i * 6 + 3] = GLushort(i * 4 + 0);
indices[i * 6 + 3] = GLushort(i * 4 + 1);
indices[i * 6 + 4] = GLushort(i * 4 + 2);
indices[i * 6 + 5] = GLushort(i * 4 + 3);
}