Cleaned up some index buffer code.

This commit is contained in:
Alex Szpakowski
2015-06-16 21:27:19 -03:00
parent 073570b7af
commit 2dc8a8ea45
10 changed files with 121 additions and 166 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ void SpriteBatch::setBufferSize(int newsize)
void *new_data = new_array_buf->map();
memcpy(new_data, old_data, sizeof(Vertex) * 4 * std::min(newsize, size));
quad_indices = VertexIndex(newsize);
quad_indices = QuadIndices(newsize);
}
catch (love::Exception &)
{