mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gl renderer: Don't leak gl resources
This commit is contained in:
parent
5eb4f65c32
commit
28499032da
@ -1921,6 +1921,8 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
|
||||
/* Done drawing, destroy the buffer again.
|
||||
* TODO: Can we reuse the memory, though? */
|
||||
g_free (vertex_data);
|
||||
glDeleteVertexArrays (1, &vao_id);
|
||||
glDeleteBuffers (1, &buffer_id);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user