diff options
-rw-r--r-- | include/render/gles2.h | 1 | ||||
-rw-r--r-- | render/gles2/renderer.c | 2 | ||||
-rw-r--r-- | render/gles2/texture.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h index 39ec1da0..0e93522f 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -128,6 +128,7 @@ struct wlr_texture *gles2_texture_from_dmabuf(struct wlr_renderer *wlr_renderer, struct wlr_dmabuf_attributes *attribs); struct wlr_texture *gles2_texture_from_buffer(struct wlr_renderer *wlr_renderer, struct wlr_buffer *buffer); +void gles2_texture_destroy(struct wlr_gles2_texture *texture); void push_gles2_debug_(struct wlr_gles2_renderer *renderer, const char *file, const char *func); diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 707b2c49..0770993e 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -546,7 +546,7 @@ static void gles2_destroy(struct wlr_renderer *wlr_renderer) { struct wlr_gles2_texture *tex, *tex_tmp; wl_list_for_each_safe(tex, tex_tmp, &renderer->textures, link) { - wlr_texture_destroy(&tex->wlr_texture); + gles2_texture_destroy(tex); } push_gles2_debug(renderer); diff --git a/render/gles2/texture.c b/render/gles2/texture.c index 9ffabbdc..7d8ad106 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -125,7 +125,7 @@ static bool gles2_texture_invalidate(struct wlr_gles2_texture *texture) { return true; } -static void gles2_texture_destroy(struct wlr_gles2_texture *texture) { +void gles2_texture_destroy(struct wlr_gles2_texture *texture) { wl_list_remove(&texture->link); wl_list_remove(&texture->buffer_destroy.link); |