[core] don't generate clip IDs for buckets/layers that don't need to be clipped

This commit is contained in:
Konstantin Käfer
2017-10-13 17:53:30 -07:00
parent d95079a0f9
commit 0cd646180e
4 changed files with 14 additions and 3 deletions

View File

@@ -8,13 +8,16 @@ struct Renderable {
UnwrappedTileID id;
ClipID clip;
bool used;
bool needsClipping;
Renderable(UnwrappedTileID id_,
ClipID clip_,
bool used_ = true)
bool used_ = true,
bool needsClipping_ = true)
: id(std::move(id_)),
clip(std::move(clip_)),
used(used_) {}
used(used_),
needsClipping(needsClipping_) {}
bool operator==(const Renderable& rhs) const {
return id == rhs.id && clip == rhs.clip;