aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-21 12:02:42 +0200
committerSimon Ser <contact@emersion.fr>2021-04-22 15:44:49 +0200
commit8ca2b4cf49055eabcd2499bf3811d356d769bded (patch)
tree063b909507ab173eb88f947327e286cf971a5953 /include
parent661ba495640069b3484441be1631f70187066656 (diff)
render/pixman: destroy textures on renderer teardown
Diffstat (limited to 'include')
-rw-r--r--include/render/pixman.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/render/pixman.h b/include/render/pixman.h
index f4cab45e..dd2d768b 100644
--- a/include/render/pixman.h
+++ b/include/render/pixman.h
@@ -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;