mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
background: don't tank if background is destroyed before it gets a pipeline
Right now we call unset_texture from MetaBackground's dispose method. unset_texture assumes there's a pipeline available, but there may not be if the object was just created. This commit fixes that incorrect assumption. https://bugzilla.gnome.org/show_bug.cgi?id=696157
This commit is contained in:
parent
47cf63bebe
commit
577e5e2e1a
@ -704,6 +704,7 @@ static void
|
|||||||
unset_texture (MetaBackground *self)
|
unset_texture (MetaBackground *self)
|
||||||
{
|
{
|
||||||
MetaBackgroundPrivate *priv = self->priv;
|
MetaBackgroundPrivate *priv = self->priv;
|
||||||
|
if (priv->pipeline != NULL)
|
||||||
cogl_pipeline_set_layer_texture (priv->pipeline, 0, NULL);
|
cogl_pipeline_set_layer_texture (priv->pipeline, 0, NULL);
|
||||||
|
|
||||||
g_clear_pointer (&priv->texture,
|
g_clear_pointer (&priv->texture,
|
||||||
|
Loading…
Reference in New Issue
Block a user