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

Commit

Permalink
[core] Ensure image dependencies in GeometryTileWorker::onImagesAvail…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
brunoabinader committed Aug 14, 2017
1 parent 336259d commit cd8eb13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mbgl/tile/geometry_tile_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@ void GeometryTileWorker::onGlyphsAvailable(GlyphMap newGlyphMap) {

void GeometryTileWorker::onImagesAvailable(ImageMap newImageMap) {
imageMap = std::move(newImageMap);
pendingImageDependencies.clear();
for (const auto& pair : imageMap) {
auto it = pendingImageDependencies.find(pair.first);
if (it != pendingImageDependencies.end()) {
pendingImageDependencies.erase(it);
}
}
symbolDependenciesChanged();
}

Expand Down

0 comments on commit cd8eb13

Please sign in to comment.