mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +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()
|
void VBO::unmap()
|
||||||
{
|
{
|
||||||
glBufferSubDataARB(getTarget(), 0, getSize(), mapped);
|
if (mapped)
|
||||||
free(mapped);
|
{
|
||||||
mapped = 0;
|
glBufferSubDataARB(getTarget(), 0, getSize(), mapped);
|
||||||
|
free(mapped);
|
||||||
|
mapped = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VBO::bind()
|
void VBO::bind()
|
||||||
|
|||||||
Reference in New Issue
Block a user