Merged default into minor

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-07-13 20:26:51 -03:00
5 changed files with 22 additions and 14 deletions
+2 -4
View File
@@ -219,13 +219,11 @@ void VertexBuffer::unload(bool save)
if (save && getMemoryBacking() == BACKING_PARTIAL)
{
VertexBuffer::Bind bind(*this);
bool mapped = is_mapped;
map(); // saves buffer content to memory_map.
is_mapped = mapped;
}
is_mapped = false;
glDeleteBuffers(1, &vbo);
vbo = 0;
}