mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
scene: do not reset scene_buffer state on buffer release
This fixes an issue with some buffers not rendering anymore due to buffer_width and buffer_height being reset on buffer release.
This commit is contained in:
parent
ebef710746
commit
e70afebfc9
@ -608,7 +608,10 @@ static void scene_buffer_handle_buffer_release(struct wl_listener *listener,
|
||||
void *data) {
|
||||
struct wlr_scene_buffer *scene_buffer =
|
||||
wl_container_of(listener, scene_buffer, buffer_release);
|
||||
scene_buffer_set_buffer(scene_buffer, NULL);
|
||||
|
||||
scene_buffer->buffer = NULL;
|
||||
wl_list_remove(&scene_buffer->buffer_release.link);
|
||||
wl_list_init(&scene_buffer->buffer_release.link);
|
||||
}
|
||||
|
||||
static void scene_buffer_set_buffer(struct wlr_scene_buffer *scene_buffer,
|
||||
|
Loading…
Reference in New Issue
Block a user