backend-wayland: destroy renderbuffer before renderer output state
Reorder pixman renderer output state and SHM renderbuffer removal to
make sure the pixman renderbuffer list is empty when the output state
is destroyed.
Fixes: 4d96635a3f
("pixman-renderer: track damage in weston_renderbuffer")
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
This commit is contained in:
parent
2a6c1afced
commit
2914f28fd1
@ -687,6 +687,8 @@ wayland_output_disable(struct weston_output *base)
|
||||
if (!output->base.enabled)
|
||||
return 0;
|
||||
|
||||
wayland_output_destroy_shm_buffers(output);
|
||||
|
||||
if (renderer->type == WESTON_RENDERER_PIXMAN) {
|
||||
renderer->pixman->output_destroy(&output->base);
|
||||
#ifdef ENABLE_EGL
|
||||
@ -698,8 +700,6 @@ wayland_output_disable(struct weston_output *base)
|
||||
#endif
|
||||
}
|
||||
|
||||
wayland_output_destroy_shm_buffers(output);
|
||||
|
||||
wayland_backend_destroy_output_surface(output);
|
||||
|
||||
if (output->frame)
|
||||
|
Loading…
Reference in New Issue
Block a user