mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
Merge branch 'fix-gl-texture-leak' into 'main'
gsk: Don't leak gl textures Closes #7013 See merge request GNOME/gtk!7725
This commit is contained in:
commit
d51bf6d905
@ -46,7 +46,7 @@ gsk_gl_image_finalize (GObject *object)
|
||||
if (self->texture_id && self->framebuffer_id)
|
||||
glDeleteFramebuffers (1, &self->framebuffer_id);
|
||||
|
||||
if (gsk_gpu_image_get_flags (GSK_GPU_IMAGE (self)) & GSK_GPU_IMAGE_TOGGLE_REF)
|
||||
if (self->owns_texture)
|
||||
glDeleteTextures (1, &self->texture_id);
|
||||
|
||||
G_OBJECT_CLASS (gsk_gl_image_parent_class)->finalize (object);
|
||||
|
Loading…
Reference in New Issue
Block a user