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
This commit is contained in:
Jonas Dreßler 2020-02-07 10:23:20 +01:00 committed by Georges Basile Stavracas Neto
parent ca35ae4364
commit b75e61d5c8

View File

@ -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,