[gtk/wip/chergert/glproto: 360/526] fix unblurred inset shadow
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 360/526] fix unblurred inset shadow
- Date: Tue, 16 Feb 2021 01:14:34 +0000 (UTC)
commit 9905fc0440595a3ca831bac7b325d5b8e9c3f50d
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 28 22:54:28 2021 -0800
fix unblurred inset shadow
we need the transformed rect here too
gsk/next/gskglrenderjob.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 23bb7d488f..ba0d11cc1a 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1816,6 +1816,11 @@ static void
gsk_gl_render_job_visit_unblurred_inset_shadow_node (GskGLRenderJob *job,
GskRenderNode *node)
{
+ const GskRoundedRect *outline = gsk_inset_shadow_node_get_outline (node);
+ GskRoundedRect transformed_outline;
+
+ gsk_gl_render_job_transform_rounded_rect (job, outline, &transformed_outline);
+
gsk_gl_program_begin_draw (job->driver->inset_shadow,
&job->viewport,
&job->projection,
@@ -1824,7 +1829,7 @@ gsk_gl_render_job_visit_unblurred_inset_shadow_node (GskGLRenderJob *job,
job->alpha);
gsk_gl_program_set_uniform_rounded_rect (job->driver->inset_shadow,
UNIFORM_INSET_SHADOW_OUTLINE_RECT,
- gsk_inset_shadow_node_get_outline (node));
+ &transformed_outline);
gsk_gl_program_set_uniform_color (job->driver->inset_shadow,
UNIFORM_INSET_SHADOW_COLOR,
gsk_inset_shadow_node_get_color (node));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]