aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-17 11:37:47 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-14 15:16:16 +0400
commit532042d57387d9144f38498a7210a5a50bb9bc31 (patch)
tree31e49f3d4c1cb924d210714fb508b1bd2f0fd4c1 /ui
parent8fe496adacc03fe37fba6765d34618a390fabdc8 (diff)
ui/shader: free associated programs
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/shader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/shader.c b/ui/shader.c
index 4c80fc831f..ab448c41d4 100644
--- a/ui/shader.c
+++ b/ui/shader.c
@@ -172,5 +172,8 @@ void qemu_gl_fini_shader(QemuGLShader *gls)
if (!gls) {
return;
}
+ glDeleteProgram(gls->texture_blit_prog);
+ glDeleteProgram(gls->texture_blit_flip_prog);
+ glDeleteProgram(gls->texture_blit_vao);
g_free(gls);
}