From 7a4b2c10c76b101181b149c2d3758ea772084268 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 11 Mar 2024 01:28:23 +0100 Subject: [PATCH] gpu: contained clip is a rectangular clip, too So we can treat it like rect clip and promote it to NONE after a successful scissor. --- gsk/gpu/gskgpunodeprocessor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/gpu/gskgpunodeprocessor.c b/gsk/gpu/gskgpunodeprocessor.c index a049cad379..1f22105ae0 100644 --- a/gsk/gpu/gskgpunodeprocessor.c +++ b/gsk/gpu/gskgpunodeprocessor.c @@ -1328,7 +1328,7 @@ gsk_gpu_node_processor_add_node_clipped (GskGpuNodeProcessor *self, gsk_gpu_clip_init_copy (&self->clip, &old_clip); return; } - else if (self->clip.type == GSK_GPU_CLIP_RECT && + else if ((self->clip.type == GSK_GPU_CLIP_RECT || self->clip.type == GSK_GPU_CLIP_CONTAINED) && gsk_rect_contains_rect (&self->clip.rect.bounds, &clip)) { self->clip.type = GSK_GPU_CLIP_NONE;