buffer: listen to renderer destroy in wlr_client_buffer

When a renderer is destroyed, so are all textures. Reset the
texture in that case.
This commit is contained in:
Simon Ser 2024-03-14 13:51:01 +01:00
parent 5bef385ffc
commit 9e3576426d
2 changed files with 17 additions and 0 deletions

View file

@ -151,6 +151,7 @@ struct wlr_client_buffer {
// private state
struct wl_listener source_destroy;
struct wl_listener renderer_destroy;
size_t n_ignore_locks;
};