[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user