mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Intel gets their way
This commit is contained in:
@@ -154,9 +154,9 @@ void VBO::unmap()
|
||||
return;
|
||||
|
||||
// "orphan" current buffer to avoid implicit synchronisation on the gpu:
|
||||
// http://www.seas.upenn.edu/~pcozzi/OpenGLInsights/OpenGLInsights-AsynchronousBufferTransfers.pdf)
|
||||
glBufferDataARB(getTarget(), getSize(), NULL, getUsage());
|
||||
glBufferSubDataARB(getTarget(), 0, getSize(), memory_map);
|
||||
// http://www.seas.upenn.edu/~pcozzi/OpenGLInsights/OpenGLInsights-AsynchronousBufferTransfers.pdf
|
||||
glBufferDataARB(getTarget(), getSize(), NULL, getUsage());
|
||||
glBufferDataARB(getTarget(), getSize(), memory_map, getUsage());
|
||||
is_mapped = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user