mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Possibly (code in issue does not fail on my machine) fix #486. Please test.
This commit is contained in:
@@ -139,9 +139,12 @@ void *VBO::map()
|
||||
|
||||
void VBO::unmap()
|
||||
{
|
||||
glBufferSubDataARB(getTarget(), 0, getSize(), mapped);
|
||||
free(mapped);
|
||||
mapped = 0;
|
||||
if (mapped)
|
||||
{
|
||||
glBufferSubDataARB(getTarget(), 0, getSize(), mapped);
|
||||
free(mapped);
|
||||
mapped = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void VBO::bind()
|
||||
|
||||
Reference in New Issue
Block a user