diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-01 16:14:33 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-11-08 18:09:58 +0100 |
commit | bcdbbbcac2e331ea3a23085b1e0f5a0f5d25e0a7 (patch) | |
tree | f7961bcbb800b781a980e9e387d8f191d22051ca /src/mbgl/style/source_impl.cpp | |
parent | 3b38cf48b706ace413bee44e8d2742710c9425b4 (diff) | |
download | qtlocation-mapboxgl-bcdbbbcac2e331ea3a23085b1e0f5a0f5d25e0a7.tar.gz |
[core] don't assign clip IDs to tiles that aren't rendered
Diffstat (limited to 'src/mbgl/style/source_impl.cpp')
-rw-r--r-- | src/mbgl/style/source_impl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/style/source_impl.cpp b/src/mbgl/style/source_impl.cpp index 75668fc3b0..d31a6bf5a4 100644 --- a/src/mbgl/style/source_impl.cpp +++ b/src/mbgl/style/source_impl.cpp @@ -70,11 +70,13 @@ void Source::Impl::startRender(algorithm::ClipIDGenerator& generator, void Source::Impl::finishRender(Painter& painter) { for (auto& pair : renderTiles) { auto& tile = pair.second; - painter.renderTileDebug(tile); + if (tile.used) { + painter.renderTileDebug(tile); + } } } -const std::map<UnwrappedTileID, RenderTile>& Source::Impl::getRenderTiles() const { +std::map<UnwrappedTileID, RenderTile>& Source::Impl::getRenderTiles() { return renderTiles; } |