diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-04-30 12:29:50 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-04-30 12:29:50 +0200 |
commit | f683cbf02ad62867834fe7f703de74954f25ea4b (patch) | |
tree | 3309bb6f151bca73adfc5fcc4bee21323a3ee61b /common/glfw_view.cpp | |
parent | fcfd506a3cbce432cfa30dd70a6db65ee2e0fe3b (diff) | |
download | qtlocation-mapboxgl-f683cbf02ad62867834fe7f703de74954f25ea4b.tar.gz |
hide atomic flags as implementation detail
Diffstat (limited to 'common/glfw_view.cpp')
-rw-r--r-- | common/glfw_view.cpp | 5 |
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(); |