summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-30 12:29:50 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-04-30 12:29:50 +0200
commitf683cbf02ad62867834fe7f703de74954f25ea4b (patch)
tree3309bb6f151bca73adfc5fcc4bee21323a3ee61b /common
parentfcfd506a3cbce432cfa30dd70a6db65ee2e0fe3b (diff)
downloadqtlocation-mapboxgl-f683cbf02ad62867834fe7f703de74954f25ea4b.tar.gz
hide atomic flags as implementation detail
Diffstat (limited to 'common')
-rw-r--r--common/glfw_view.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp
index cfa1156a1c..321670b664 100644
--- a/common/glfw_view.cpp
+++ b/common/glfw_view.cpp
@@ -163,11 +163,10 @@ int MapView::run() {
map.start();
while (!glfwWindowShouldClose(window)) {
- if (map.swapped.test_and_set() == false) {
+ if (map.needsSwap()) {
glfwSwapBuffers(window);
- map.rendered.clear();
+ map.swapped();
fps();
- map.rerender();
}
glfwWaitEvents();