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;