diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-07-14 17:27:55 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-07-20 14:38:19 +0300 |
commit | 0753aad57bef0eec51ce7ca748c19ebc588bd995 (patch) | |
tree | d20e486d06d416f3ada606c157061f0fac7dcfab /src | |
parent | 234a6539311bca387a982ad1c6f51dde77d3c450 (diff) | |
download | qtlocation-mapboxgl-0753aad57bef0eec51ce7ca748c19ebc588bd995.tar.gz |
Check for pending animations or transitions when scheduling another render pass
In continuous mode, we need to check if there are any pending animations or
transitions so we can properly tell the client application that another render
pass is required.
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/map/map_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 61614dd0e4..169bd7b9c6 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -343,7 +343,7 @@ MapContext::RenderResult MapContext::renderSync(const TransformState& state, con return RenderResult { style->isLoaded(), - style->hasTransitions() + style->hasTransitions() || painter->needsAnimation() }; } |