[gnome-shell/wip/rstrode/rhel-7.9: 48/86] st/shadow: Check pipeline when painting
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-7.9: 48/86] st/shadow: Check pipeline when painting
- Date: Fri, 12 Feb 2021 19:04:07 +0000 (UTC)
commit 996d713bfbe372010fa77e0c000536276be3a970
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jun 9 19:48:06 2020 +0200
st/shadow: Check pipeline when painting
We shouldn't simply assume that st_shadow_helper_update() has been
called before paint() or that the pipeline was created successfully.
src/st/st-shadow.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-shadow.c b/src/st/st-shadow.c
index 73aa1a3a27..880f7dc7b5 100644
--- a/src/st/st-shadow.c
+++ b/src/st/st-shadow.c
@@ -287,8 +287,9 @@ st_shadow_helper_paint (StShadowHelper *helper,
ClutterActorBox *actor_box,
guint8 paint_opacity)
{
- _st_paint_shadow_with_opacity (helper->shadow,
- helper->pipeline,
- actor_box,
- paint_opacity);
+ if (helper->pipeline != NULL)
+ _st_paint_shadow_with_opacity (helper->shadow,
+ helper->pipeline,
+ actor_box,
+ paint_opacity);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]