[gtk/wip/baedert/for-master: 3/6] gl renderer: Fix rendering clipped blurred inset shadow nodes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 3/6] gl renderer: Fix rendering clipped blurred inset shadow nodes
- Date: Sun, 6 Dec 2020 19:04:44 +0000 (UTC)
commit b46d077b3addc44aa08a0460da9cd4f80ca29e39
Author: Timm Bäder <mail baedert org>
Date: Sat Dec 5 18:19:16 2020 +0100
gl renderer: Fix rendering clipped blurred inset shadow nodes
gsk/gl/gskglrenderer.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 0149fa2598..60bda9ea63 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]