From 3dbf88c9cd5dc842b480f3783630ebaf6173e98f Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 20 Sep 2022 19:33:37 -0300 Subject: [PATCH] Ignore hidden layers in ShaderRenderer --- src/app/render/shader_renderer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/render/shader_renderer.cpp b/src/app/render/shader_renderer.cpp index 718169f57..73fe888fd 100644 --- a/src/app/render/shader_renderer.cpp +++ b/src/app/render/shader_renderer.cpp @@ -177,6 +177,10 @@ void ShaderRenderer::drawLayerGroup(SkCanvas* canvas, const gfx::ClipF& area) { for (auto layer : group->layers()) { + // Ignore hidden layers + if (!layer->isVisible()) + continue; + switch (layer->type()) { case doc::ObjectType::LayerImage: {