summaryrefslogtreecommitdiff
path: root/ios
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 /ios
parentfcfd506a3cbce432cfa30dd70a6db65ee2e0fe3b (diff)
downloadqtlocation-mapboxgl-f683cbf02ad62867834fe7f703de74954f25ea4b.tar.gz
hide atomic flags as implementation detail
Diffstat (limited to 'ios')
-rw-r--r--ios/MBXViewController.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm
index c6f3b1bc41..ca3b65621a 100644
--- a/ios/MBXViewController.mm
+++ b/ios/MBXViewController.mm
@@ -153,11 +153,10 @@ MBXViewController *viewController = nullptr;
- (void)swap
{
- if (map->swapped.test_and_set() == false)
+ if (map->needsSwap())
{
[(GLKView *)self.view display];
- map->rendered.clear();
- map->rerender();
+ map->swapped();
}
}