Added SpriteBatch:setBufferSize (issue #655)

This commit is contained in:
Alex Szpakowski
2013-06-29 00:04:56 -03:00
parent 8fbf43fcc3
commit 3fb78d5458
5 changed files with 77 additions and 7 deletions
+2 -3
View File
@@ -246,11 +246,10 @@ void VBO::unload(bool save)
{
VertexBuffer::Bind bind(*this);
GLint size;
glGetBufferParameterivARB(getTarget(), GL_BUFFER_SIZE, &size);
bool mapped = is_mapped;
map(); // saves buffer content to memory_map.
unmap();
is_mapped = mapped;
}
glDeleteBuffersARB(1, &vbo);