[gtk/f16c.msvc: 2/6] ngl: Fix a case of flipped shadow
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/f16c.msvc: 2/6] ngl: Fix a case of flipped shadow
- Date: Mon, 12 Apr 2021 09:46:00 +0000 (UTC)
commit aec883ba0e14ce7e619c6a3e3b9cb9e6a44cb21e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 11 22:02:44 2021 -0400
ngl: Fix a case of flipped shadow
In the non-sliced case, we were rendering the shadow
upside down.
gsk/ngl/gsknglrenderjob.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index 60f0cff82c..4a3d1394b7 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -2433,7 +2433,7 @@ gsk_ngl_render_job_visit_blurred_outset_shadow_node (GskNglRenderJob *job,
float min_x = floorf (outline->bounds.origin.x - spread - half_blur_extra + dx);
float min_y = floorf (outline->bounds.origin.y - spread - half_blur_extra + dy);
- offscreen.was_offscreen = FALSE;
+ offscreen.was_offscreen = TRUE;
offscreen.texture_id = blurred_texture_id;
init_full_texture_region (&offscreen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]