Commits

vrld committed 35fdf42

Intel gets their way

Comments (0)

Files changed (1)

src/modules/graphics/opengl/VertexBuffer.cpp

 		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;
 }