don't constantly repaint by setting needsRepaint to false

fix by @brunoabinader
This commit is contained in:
Konstantin Käfer
2015-08-10 22:39:08 +03:00
parent 76c937f119
commit 0a527f623e

View File

@@ -345,12 +345,8 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
}
view.swap();
viewInvalidated = false;
if (style->hasTransitions() || painter->needsAnimation()) {
data.setNeedsRepaint(true);
}
data.setNeedsRepaint(style->hasTransitions() || painter->needsAnimation());
return isLoaded();
}