diff options
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 2 | ||||
-rw-r--r-- | render/gles2/texture.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); |