summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-08-31 17:56:27 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-08-31 18:09:11 -0700
commit55d25a80a77c06ef5e66acc0d8518867b03fe8a4 (patch)
tree81c7ebc771f4190ccb64309f7c45f8268be73be8 /src
parent0918ad5a29ea535ac59c39097cd7a670f0a76320 (diff)
downloadqtlocation-mapboxgl-55d25a80a77c06ef5e66acc0d8518867b03fe8a4.tar.gz
In still mode, don't load resources until a render request is made
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/map_context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp
index f6cc4ec2b7..17d3a87ccc 100644
--- a/src/mbgl/map/map_context.cpp
+++ b/src/mbgl/map/map_context.cpp
@@ -259,7 +259,7 @@ void MapContext::update() {
updateFlags = Update::Nothing;
}
- if (updateFlags == Update::Nothing) {
+ if (updateFlags == Update::Nothing || (data.mode == MapMode::Still && !callback)) {
return;
}