[gtk/wip/baedert/for-master: 5/13] gl renderer: Scale blur radius



commit 803593cc8f65b85618f8dbec32580097a067b9e2
Author: Timm Bäder <mail baedert org>
Date:   Fri Nov 29 06:50:44 2019 +0100

    gl renderer: Scale blur radius
    
    We scale the texture size, so as a consequence we have to scale the blur
    radius.

 gsk/gl/gskglrenderer.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index d6f5111ba0..a49689014a 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1503,8 +1503,7 @@ render_blur_node (GskGLRenderer   *self,
                                          region.texture_id,
                                          node->bounds.size.width * scale,
                                          node->bounds.size.height * scale,
-                                         blur_radius);
-
+                                         blur_radius * scale);
     }
 
   g_assert (blurred_texture_id != 0);
@@ -1689,7 +1688,7 @@ render_outset_shadow_node (GskGLRenderer   *self,
                                          texture_id,
                                          texture_width,
                                          texture_height,
-                                         blur_radius);
+                                         blur_radius * scale);
 
       gsk_gl_driver_mark_texture_permanent (self->gl_driver, blurred_texture_id);
       gsk_gl_shadow_cache_commit (&self->shadow_cache,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]