diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-07 18:49:47 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-09 16:48:08 +0300 |
commit | c953fdad24379c20f9e5bccc3f40481bffc25df2 (patch) | |
tree | ed8cdbf38832158b13e0b54b3f4340078fa032cf /src/mbgl | |
parent | 06b790dc75e8d1849d4675a5405284fee3e9e747 (diff) | |
download | qtlocation-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.cpp | 3 |
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) { |