gl renderer: Fix rendering clipped blurred inset shadow nodes

This commit is contained in:
Timm Bäder 2020-12-05 18:19:16 +01:00
parent e32331d002
commit b46d077b3a

View File

@ -2154,7 +2154,14 @@ render_inset_shadow_node (GskGLRenderer *self,
if (needs_clip)
{
const GskRoundedRect node_clip = transform_rect (self, builder, node_outline);
GskRoundedRect node_clip;
ops_transform_bounds_modelview (builder, &node_outline->bounds, &node_clip.bounds);
for (int i = 0; i < 4; i ++)
{
node_clip.corner[i].width = node_outline->corner[i].width * scale_x;
node_clip.corner[i].height = node_outline->corner[i].height * scale_y;
}
ops_push_clip (builder, &node_clip);
}