diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-06-29 22:40:50 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-04 15:50:50 +0300 |
commit | 60eae41549cec18dfeed5175fe1d6c327060a8de (patch) | |
tree | 8338673b9b01656d14fa645be878004309245e5a /src/mbgl/map/map.cpp | |
parent | a744e35f44213584574b2e5377076d4b6d99ac7b (diff) | |
download | qtlocation-mapboxgl-60eae41549cec18dfeed5175fe1d6c327060a8de.tar.gz |
[core] Factor timePoint initialization: take 2
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r-- | src/mbgl/map/map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 4d073802c2..034e43f260 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -207,7 +207,9 @@ void Map::render(View& view) { } void Map::Impl::render(View& view) { - TimePoint timePoint = Clock::now(); + TimePoint timePoint = mode == MapMode::Continuous + ? Clock::now() + : Clock::time_point::max(); transform.updateTransitions(timePoint); |