[gnome-shell/wip/rstrode/login-screen-extensions: 113/134] st/shadow: Check pipeline when painting
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/login-screen-extensions: 113/134] st/shadow: Check pipeline when painting
- Date: Thu, 26 Aug 2021 19:31:02 +0000 (UTC)
commit ab4412bdcca80cf6235c8db07e419ba8f1a11c87
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 | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/st/st-shadow.c b/src/st/st-shadow.c
index f3a22f0346..7665de7552 100644
--- a/src/st/st-shadow.c
+++ b/src/st/st-shadow.c
@@ -289,9 +289,10 @@ st_shadow_helper_paint (StShadowHelper *helper,
ClutterActorBox *actor_box,
guint8 paint_opacity)
{
- _st_paint_shadow_with_opacity (helper->shadow,
- framebuffer,
- helper->pipeline,
- actor_box,
- paint_opacity);
+ if (helper->pipeline != NULL)
+ _st_paint_shadow_with_opacity (helper->shadow,
+ framebuffer,
+ helper->pipeline,
+ actor_box,
+ paint_opacity);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]