summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-07 18:49:47 +0300
committerTobrun <tobrun.van.nuland@gmail.com>2019-05-10 15:15:10 +0200
commit496c12ab775856a5c54c91d885c20171925f7401 (patch)
tree5669ac6ea46dbdf260eaa912f734e8200002ea98
parentc41b20b0276c92d0497a57372a1e14a73868f53b (diff)
downloadqtlocation-mapboxgl-496c12ab775856a5c54c91d885c20171925f7401.tar.gz
[core] Failed sprite requests do not block tiles rendering
-rw-r--r--src/mbgl/style/style_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp
index fde5aa632d..d527b8440b 100644
--- a/src/mbgl/style/style_impl.cpp
+++ b/src/mbgl/style/style_impl.cpp
@@ -309,6 +309,9 @@ void Style::Impl::onSpriteError(std::exception_ptr error) {
lastError = error;
Log::Error(Event::Style, "Failed to load sprite: %s", util::toString(error).c_str());
observer->onResourceError(error);
+ // Unblock rendering tiles (even though sprite request has failed).
+ spriteLoaded = true;
+ observer->onUpdate();
}
void Style::Impl::onLayerChanged(Layer& layer) {