Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Failed sprite requests do not block tiles rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
pozdnyakov authored and tobrun committed May 10, 2019
1 parent c41b20b commit 496c12a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mbgl/style/style_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 496c12a

Please sign in to comment.