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