[gtk+/wip/baedert/gl: 214/216] gl renderer: Don't leak gl resources
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 214/216] gl renderer: Don't leak gl resources
- Date: Mon, 18 Dec 2017 21:03:09 +0000 (UTC)
commit 8cf64252c097a3eab65a2bd1e2b564452b789859
Author: Timm Bäder <mail baedert org>
Date: Sat Dec 16 02:37:03 2017 +0100
gl renderer: Don't leak gl resources
gsk/gl/gskglrenderer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 49d8684..95cc513 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]