render/pixman: destroy textures on renderer teardown

This commit is contained in:
Simon Ser 2021-04-21 12:02:42 +02:00
parent 661ba49564
commit 8ca2b4cf49
2 changed files with 12 additions and 1 deletions

View file

@ -17,6 +17,7 @@ struct wlr_pixman_renderer {
struct wlr_renderer wlr_renderer;
struct wl_list buffers; // wlr_pixman_buffer.link
struct wl_list textures; // wlr_pixman_texture.link
struct wlr_pixman_buffer *current_buffer;
int32_t width, height;
@ -37,6 +38,7 @@ struct wlr_pixman_buffer {
struct wlr_pixman_texture {
struct wlr_texture wlr_texture;
struct wlr_pixman_renderer *renderer;
struct wl_list link; // wlr_pixman_renderer.textures
void *data;
pixman_image_t *image;