gpu: Don't optimize too much

The rect clip can only be ignored if the scissor rect is contained in
the clip. But sometimes it isn't.

Fixes #6389
This commit is contained in:
Benjamin Otte 2024-02-04 21:52:05 +01:00
parent 88bed27f85
commit 2a3a5753c1

View File

@ -1318,7 +1318,8 @@ 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 &&
gsk_rect_contains_rect (&self->clip.rect.bounds, &clip))
{
self->clip.type = GSK_GPU_CLIP_NONE;
}