[gnome-shell] blur-effect: Only apply paint opacity once when blurring actor



commit b75e61d5c8475ce41b8d5f8df405e6d30745d6c1
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Fri Feb 7 10:23:20 2020 +0100

    blur-effect: Only apply paint opacity once when blurring actor
    
    We don't want to apply the opacity multiple times, because this would
    also multiply the opacity we're applying.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991

 src/shell-blur-effect.c | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c
index f7b391dad4..dc77714f95 100644
--- a/src/shell-blur-effect.c
+++ b/src/shell-blur-effect.c
@@ -588,12 +588,6 @@ apply_blur (ShellBlurEffect     *self,
   hblur = &self->blur[HORIZONTAL];
 
   /* Copy the actor contents into the vblur framebuffer */
-  cogl_pipeline_set_color4ub (from->pipeline,
-                              paint_opacity,
-                              paint_opacity,
-                              paint_opacity,
-                              paint_opacity);
-
   clear_framebuffer (vblur->data.framebuffer);
   cogl_framebuffer_draw_rectangle (vblur->data.framebuffer,
                                    from->pipeline,
@@ -609,11 +603,6 @@ apply_blur (ShellBlurEffect     *self,
    * blurred image.
    */
   update_blur_uniforms (self, vblur);
-  cogl_pipeline_set_color4ub (vblur->data.pipeline,
-                              paint_opacity,
-                              paint_opacity,
-                              paint_opacity,
-                              paint_opacity);
 
   clear_framebuffer (hblur->data.framebuffer);
   cogl_framebuffer_draw_rectangle (hblur->data.framebuffer,


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