summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-07 18:49:47 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-05-09 16:48:08 +0300
commitc953fdad24379c20f9e5bccc3f40481bffc25df2 (patch)
treeed8cdbf38832158b13e0b54b3f4340078fa032cf /src/mbgl
parent06b790dc75e8d1849d4675a5405284fee3e9e747 (diff)
downloadqtlocation-mapboxgl-c953fdad24379c20f9e5bccc3f40481bffc25df2.tar.gz
[core] Failed sprite requests do not block tiles rendering
Diffstat (limited to 'src/mbgl')
-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) {