Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Check for pending animations or transitions when scheduling another r…
Browse files Browse the repository at this point in the history
…ender 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.
  • Loading branch information
brunoabinader committed Jul 20, 2015
1 parent 234a653 commit 0753aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/map/map_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ MapContext::RenderResult MapContext::renderSync(const TransformState& state, con

return RenderResult {
style->isLoaded(),
style->hasTransitions()
style->hasTransitions() || painter->needsAnimation()
};
}

Expand Down

0 comments on commit 0753aad

Please sign in to comment.