summaryrefslogtreecommitdiff
path: root/scene.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-04-04 00:01:39 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-04-04 00:01:39 +0200
commit095be9811eaccd92cee156b4c486fb92b77cdcd2 (patch)
tree354d6f28f0efd721748c0e052921b443ee86bd79 /scene.cpp
parent61fe986e9ad6d1f26275e2ffd72cae0c2542256c (diff)
Threaded VBO creation.
A secondary memory-mapped VBO is filled in a separate thread, which replaces the main VBO when work is done.
Diffstat (limited to 'scene.cpp')
-rw-r--r--scene.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene.cpp b/scene.cpp
index 4b96595..5bbd1b2 100644
--- a/scene.cpp
+++ b/scene.cpp
@@ -92,4 +92,5 @@ bool Scene::select(int x, int y, float& px, float& py, float& pz) {
void Scene::update() {
qt->update(pos.x, pos.z);
+ qt->update_vbo();
}