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 /ios | |
parent | fcfd506a3cbce432cfa30dd70a6db65ee2e0fe3b (diff) | |
download | qtlocation-mapboxgl-f683cbf02ad62867834fe7f703de74954f25ea4b.tar.gz |
hide atomic flags as implementation detail
Diffstat (limited to 'ios')
-rw-r--r-- | ios/MBXViewController.mm | 5 |
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(); } } |