hide atomic flags as implementation detail

This commit is contained in:
Konstantin Käfer
2014-04-30 12:29:50 +02:00
parent fcfd506a3c
commit f683cbf02a
4 changed files with 29 additions and 18 deletions

View File

@@ -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();