[core] fix flickering caused by incorrect ClipIDs

we missed a check for RenderTile.needsClipping when generating the new ClipIDs for some tiles, resulting in incorrect clipping that caused flickering in some cases
This commit is contained in:
Molly Lloyd
2018-09-26 19:45:44 -07:00
committed by Molly Lloyd
parent 0200773762
commit cec3eaa198

View File

@@ -64,7 +64,7 @@ void ClipIDGenerator::update(std::vector<std::reference_wrapper<Renderable>> ren
uint8_t count = 1;
for (auto& it : renderables) {
auto& renderable = it.get();
if (!renderable.used) {
if (!renderable.used || !renderable.needsClipping) {
continue;
}
renderable.clip.mask |= mask;