summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/renderer_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/renderer_impl.cpp')
-rw-r--r--src/mbgl/renderer/renderer_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/renderer/renderer_impl.cpp b/src/mbgl/renderer/renderer_impl.cpp
index 2ac714e122..b8937c4d6e 100644
--- a/src/mbgl/renderer/renderer_impl.cpp
+++ b/src/mbgl/renderer/renderer_impl.cpp
@@ -404,6 +404,11 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
// commitFeatureIndexes depends on the assumption that no new FeatureIndex has been loaded since placement
// started. If we violate this assumption, then we need to either make CollisionIndex completely independendent of
// FeatureIndex, or find a way for its entries to point to multiple FeatureIndexes.
+ // We also depend on the assumption that anything that can change the results of CollisionIndex::queryRenderedSymbols
+ // will cause 'placementChanged' to be true (note that adding a non-placed item to the index will _not_ make
+ // placementChanged true).
+ // We should consider switching to the "always commit new placements" strategy used in
+ // https://github.com/mapbox/mapbox-gl-js/pull/6104
commitFeatureIndexes();
crossTileSymbolIndex.pruneUnusedLayers(usedSymbolLayers);
if (placementChanged || symbolBucketsChanged) {