summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-08-10 22:39:08 +0300
committerKonstantin Käfer <mail@kkaefer.com>2015-08-10 22:39:08 +0300
commit0a527f623ed88ef46c104e97a86239b012141074 (patch)
treea7605cca8a8ed4df8fe0e69e9dcc22a63334b93c
parent76c937f119bdc673fef2675a4db22731cde85dfe (diff)
downloadqtlocation-mapboxgl-0a527f623ed88ef46c104e97a86239b012141074.tar.gz
don't constantly repaint by setting needsRepaint to false
fix by @brunoabinader
-rw-r--r--src/mbgl/map/map_context.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp
index 33e4e6d181..c14a61b8b7 100644
--- a/src/mbgl/map/map_context.cpp
+++ b/src/mbgl/map/map_context.cpp
@@ -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();
}