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-07 18:49:47 +0300 |
commit | 3ee3465dc98078ece0a5764fba12041d5ecfbc28 (patch) | |
tree | ca1b1e8a542d08abe4356cd767b88e9d2713a4e4 | |
parent | 8a3d07fcd83d01415b672dd5f45a5e08af7d5594 (diff) | |
download | qtlocation-mapboxgl-upstream/mikhail_render_tiles_with_missing_sprites.tar.gz |
[core] Failed sprite requests do not block tiles renderingupstream/mikhail_render_tiles_with_missing_sprites
-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) { |