Disallow concave shapes as geometry.

This commit is contained in:
vrld
2013-05-12 13:01:05 +02:00
parent d454be7025
commit e9d0204cdc
6 changed files with 40 additions and 71 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ void Image::drawg(love::graphics::Geometry *geom, float x, float y, float angle,
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(vertex), (GLvoid *) &v[0].r);
}
drawv(t, v, geom->getVertexArraySize(), GL_TRIANGLES);
drawv(t, v, geom->getVertexCount(), GL_TRIANGLE_FAN);
if (geom->hasVertexColors())
{