mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
gpu: Use common cleanup function
Just simple cleanup, both functions do the same thing.
This commit is contained in:
parent
65c8320a32
commit
ea9b47f1b6
@ -280,8 +280,7 @@ release_dmabuf_texture (gpointer data)
|
||||
{
|
||||
Texture *texture = data;
|
||||
|
||||
for (unsigned int i = 0; i < texture->dmabuf.n_planes; i++)
|
||||
g_close (texture->dmabuf.planes[i].fd, NULL);
|
||||
gdk_dmabuf_close_fds (&texture->dmabuf);
|
||||
g_free (texture);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user