diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-10-13 17:53:30 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-10-17 15:08:22 -0700 |
commit | cbff0a972a9e0a4210c94de1c36f0dce278d01e9 (patch) | |
tree | b784305daa1b487774e2b02ee34a923d5d25b47a /src/mbgl/algorithm/generate_clip_ids_impl.hpp | |
parent | 12f78fc8747332a3d54763c9b0cc2e794eefb4f8 (diff) | |
download | qtlocation-mapboxgl-cbff0a972a9e0a4210c94de1c36f0dce278d01e9.tar.gz |
[core] don't generate clip IDs for buckets/layers that don't need to be clipped
Diffstat (limited to 'src/mbgl/algorithm/generate_clip_ids_impl.hpp')
-rw-r--r-- | src/mbgl/algorithm/generate_clip_ids_impl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/algorithm/generate_clip_ids_impl.hpp b/src/mbgl/algorithm/generate_clip_ids_impl.hpp index db62214220..6a316dcdad 100644 --- a/src/mbgl/algorithm/generate_clip_ids_impl.hpp +++ b/src/mbgl/algorithm/generate_clip_ids_impl.hpp @@ -17,7 +17,7 @@ void ClipIDGenerator::update(std::vector<std::reference_wrapper<Renderable>> ren const auto end = renderables.end(); for (auto it = renderables.begin(); it != end; it++) { auto& renderable = it->get(); - if (!renderable.used) { + if (!renderable.used || !renderable.needsClipping) { continue; } |