From 7a25d6c50b8cccff3d10fe932ca36e46be62b0a9 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 9 Jun 2017 10:33:02 -0400 Subject: Destroy gles3 wlr_surfaces --- render/gles3/surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/gles3/surface.c') diff --git a/render/gles3/surface.c b/render/gles3/surface.c index c1fef48e..0ddf3ae0 100644 --- a/render/gles3/surface.c +++ b/render/gles3/surface.c @@ -43,7 +43,8 @@ static void gles3_surface_bind(struct wlr_surface_state *surface) { } static void gles3_surface_destroy(struct wlr_surface_state *surface) { - // TODO + GL_CALL(glDeleteTextures(1, &surface->tex_id)); + free(surface); } static struct wlr_surface_impl wlr_surface_impl = { -- cgit v1.2.3