aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/gles3/surface.c3
1 files changed, 2 insertions, 1 deletions
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 = {