mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
texture-tower: Use memory management helpers more
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1496
This commit is contained in:
parent
1cc82cf759
commit
5a58ccbece
@ -126,12 +126,7 @@ meta_texture_tower_set_base_texture (MetaTextureTower *tower,
|
|||||||
{
|
{
|
||||||
for (i = 1; i < tower->n_levels; i++)
|
for (i = 1; i < tower->n_levels; i++)
|
||||||
{
|
{
|
||||||
if (tower->textures[i] != NULL)
|
cogl_clear_object (&tower->textures[i]);
|
||||||
{
|
|
||||||
cogl_object_unref (tower->textures[i]);
|
|
||||||
tower->textures[i] = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_clear_object (&tower->fbos[i]);
|
g_clear_object (&tower->fbos[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user