From 0753aad57bef0eec51ce7ca748c19ebc588bd995 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 14 Jul 2015 17:27:55 +0300 Subject: [PATCH] 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. --- src/mbgl/map/map_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 61614dd0e4c..169bd7b9c6e 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() }; }