mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Added SpriteBatch:setBufferSize (issue #655)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user