summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-04-30 14:35:49 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-05-05 11:53:23 +0200
commit5aa0caf5c50df26e0ce4a4f42b22d0647e6b1ae2 (patch)
treefa5b040a417f3979fd6c39458aa1325e0b8d82c1 /src
parent24083c582c7308025ed05285ad9e82696c70658a (diff)
downloadqtlocation-mapboxgl-5aa0caf5c50df26e0ce4a4f42b22d0647e6b1ae2.tar.gz
don't trigger cleanups when we're not rendering
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/map_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp
index 160977978f..4e0a044727 100644
--- a/src/mbgl/map/map_context.cpp
+++ b/src/mbgl/map/map_context.cpp
@@ -286,7 +286,7 @@ void MapContext::setSourceTileCacheSize(size_t size) {
for (const auto &source : style->sources) {
source->setCacheSize(sourceCacheSize);
}
- env.performCleanup();
+ view.invalidate([this] { render(); });
}
}
@@ -296,7 +296,7 @@ void MapContext::onLowMemory() {
for (const auto &source : style->sources) {
source->onLowMemory();
}
- env.performCleanup();
+ view.invalidate([this] { render(); });
}
}