summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/tile/geometry_tile_worker.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mbgl/tile/geometry_tile_worker.cpp b/src/mbgl/tile/geometry_tile_worker.cpp
index c622d82e31..add1ea343c 100644
--- a/src/mbgl/tile/geometry_tile_worker.cpp
+++ b/src/mbgl/tile/geometry_tile_worker.cpp
@@ -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();
}