blur-effect: Handle failure of background blitting gracefully

`paint_background` already provides a return value in case the blitting
of the framebuffer fails, handle that and fall back to only drawing the
actor in case something goes wrong.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1000
This commit is contained in:
Jonas Dreßler 2020-02-13 22:50:40 +01:00 committed by Georges Basile Stavracas Neto
parent 4783d767d6
commit 91748aedb7

View File

@ -807,7 +807,9 @@ shell_blur_effect_paint (ClutterEffect *effect,
break; break;
case SHELL_BLUR_MODE_BACKGROUND: case SHELL_BLUR_MODE_BACKGROUND:
paint_background (self, paint_context, &source_actor_box); if (!paint_background (self, paint_context, &source_actor_box))
goto fail;
apply_blur (self, paint_context, &self->background_fb, 255); apply_blur (self, paint_context, &self->background_fb, 255);
break; break;
} }