diff --git a/src/mbgl/renderer/symbol_bucket.cpp b/src/mbgl/renderer/symbol_bucket.cpp index 39fcb91e0..2fd1bee95 100644 --- a/src/mbgl/renderer/symbol_bucket.cpp +++ b/src/mbgl/renderer/symbol_bucket.cpp @@ -40,7 +40,8 @@ void SymbolBucket::render(Painter& painter, } bool SymbolBucket::hasData() const { - return hasTextData() || hasIconData(); + assert(false); // Should be calling SymbolLayout::hasSymbolInstances() instead. + return false; } bool SymbolBucket::hasTextData() const { diff --git a/src/mbgl/tile/tile_worker.cpp b/src/mbgl/tile/tile_worker.cpp index 572f9054c..97e682d69 100644 --- a/src/mbgl/tile/tile_worker.cpp +++ b/src/mbgl/tile/tile_worker.cpp @@ -167,9 +167,9 @@ TilePlacementResult TileWorker::redoPlacement(const PlacementConfig& config) { for (auto& symbolLayout : symbolLayouts) { symbolLayout->state = SymbolLayout::Placed; - std::unique_ptr bucket = symbolLayout->place(*result.collisionTile); - if (bucket->hasData() || symbolLayout->hasSymbolInstances()) { - result.buckets.emplace(symbolLayout->bucketName, std::move(bucket)); + if (symbolLayout->hasSymbolInstances()) { + result.buckets.emplace(symbolLayout->bucketName, + symbolLayout->place(*result.collisionTile)); } }