scene: listen to renderer destroy in wlr_scene_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 14:05:55 +01:00
parent 3d9f330ee0
commit 859373b253
2 changed files with 16 additions and 0 deletions

View file

@ -191,6 +191,7 @@ struct wlr_scene_buffer {
bool buffer_is_opaque;
struct wl_listener buffer_release;
struct wl_listener renderer_destroy;
};
/** A viewport for an output in the scene-graph */