diff --git a/src/mbgl/tile/geometry_tile_worker.cpp b/src/mbgl/tile/geometry_tile_worker.cpp index c622d82e31e..add1ea343cd 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(); }