Intel gets their way

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