Merge branch 'surface-texture-v2' into 'master'

Replace wlr_client_buffer with wlr_surface_texture, take 2

See merge request wlroots/wlroots!4437
This commit is contained in:
Simon Ser 2024-03-14 11:40:18 +00:00
commit 8fa5b78f66
13 changed files with 209 additions and 225 deletions

View file

@ -18,9 +18,12 @@ void wlr_texture_init(struct wlr_texture *texture, struct wlr_renderer *renderer
.width = width,
.height = height,
};
wl_signal_init(&texture->events.destroy);
}
void wlr_texture_destroy(struct wlr_texture *texture) {
wl_signal_emit_mutable(&texture->events.destroy, NULL);
if (texture && texture->impl && texture->impl->destroy) {
texture->impl->destroy(texture);
} else {