Intel gets their way

This commit is contained in:
vrld
2012-11-22 21:24:43 +01:00
parent a35b4232e1
commit c782093374
+3 -3
View File
@@ -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;
}