summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compositor/meta-background.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c
index 3380957ee..d15b06cd9 100644
--- a/src/compositor/meta-background.c
+++ b/src/compositor/meta-background.c
@@ -704,7 +704,8 @@ static void
unset_texture (MetaBackground *self)
{
MetaBackgroundPrivate *priv = self->priv;
- cogl_pipeline_set_layer_texture (priv->pipeline, 0, NULL);
+ if (priv->pipeline != NULL)
+ cogl_pipeline_set_layer_texture (priv->pipeline, 0, NULL);
g_clear_pointer (&priv->texture,
(GDestroyNotify)