summaryrefslogtreecommitdiff
path: root/src/mbgl/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-08-12 14:22:01 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-08-24 13:06:23 -0700
commit9c02e4d7dd536253f9ce3194fa9930a842fa4888 (patch)
treec0b9150419658925a43e0dd47895926eaaa2c624 /src/mbgl/map
parentd05486391a75de8dace7aec258121a92a3e698fb (diff)
downloadqtlocation-mapboxgl-9c02e4d7dd536253f9ce3194fa9930a842fa4888.tar.gz
[core] Inline Renderer::Impl::doRender
Diffstat (limited to 'src/mbgl/map')
-rw-r--r--src/mbgl/map/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index b7978f0e9b..324bcc8b5d 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -196,6 +196,9 @@ void Map::Impl::onDidFinishRenderingFrame(RenderMode renderMode, bool needsRepai
if (needsRepaint || transform.inTransition()) {
onUpdate(Update::Repaint);
}
+ } else if (stillImageRequest && rendererFullyLoaded) {
+ auto request = std::move(stillImageRequest);
+ request->callback(nullptr);
}
}
@@ -206,9 +209,6 @@ void Map::Impl::onDidFinishRenderingMap() {
loading = false;
observer.onDidFinishLoadingMap();
}
- } else if (stillImageRequest) {
- auto request = std::move(stillImageRequest);
- request->callback(nullptr);
}
};