Fixed a bug that lead to the wrong data being written to opengl's vertex buffers (looked concurrency-related, but there shouldn't have been anything else reading that buffer at the time).