mirror of
https://github.com/brl/mutter.git
synced 2024-11-11 00:26:40 -05:00
shaped-texture: Prevent a critical when setting a NULL cogl texture
This commit is contained in:
parent
37ba264190
commit
0850da44d7
@ -227,10 +227,11 @@ set_cogl_texture (MetaShapedTexture *stex,
|
||||
if (priv->texture)
|
||||
cogl_object_unref (priv->texture);
|
||||
|
||||
priv->texture = cogl_object_ref (cogl_tex);
|
||||
priv->texture = cogl_tex;
|
||||
|
||||
if (cogl_tex != NULL)
|
||||
{
|
||||
cogl_object_ref (cogl_tex);
|
||||
width = cogl_texture_get_width (COGL_TEXTURE (cogl_tex));
|
||||
height = cogl_texture_get_height (COGL_TEXTURE (cogl_tex));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user