diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-08-13 20:23:11 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-08-14 18:23:03 +0300 |
commit | cd8eb13ba2d8b65f6cac12a36e0586abc56fcb9f (patch) | |
tree | 6031c67981608dbd9b547b3c479bcc3b19da5fff | |
parent | 336259d4ade7515901f0d477becbe40e9f52d108 (diff) | |
download | qtlocation-mapboxgl-cd8eb13ba2d8b65f6cac12a36e0586abc56fcb9f.tar.gz |
[core] Ensure image dependencies in GeometryTileWorker::onImagesAvailable
-rw-r--r-- | src/mbgl/tile/geometry_tile_worker.cpp | 7 |
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(); } |