gpu: Adjust shadows clip by shadow offset

When computing the clip of the shadow rect, don't forget that it will
ultimately be offset by the shadow offset.

Fixes #6425
This commit is contained in:
Benjamin Otte
2024-02-13 21:22:13 +01:00
parent f9b66dff8b
commit a1dda0ec3c

View File

@@ -1010,6 +1010,8 @@ gsk_gpu_node_processor_blur_op (GskGpuNodeProcessor *self,
/* FIXME: Handle clip radius growing the clip too much */
gsk_gpu_node_processor_get_clip_bounds (self, &clip_rect);
clip_rect.origin.x -= shadow_offset->x;
clip_rect.origin.y -= shadow_offset->y;
graphene_rect_inset (&clip_rect, 0.f, -clip_radius);
if (!gsk_rect_intersection (rect, &clip_rect, &intermediate_rect))
return;