mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 05:18:01 +02:00
compositor-fbdev: always destroy renderer-output on disable
If we pass the base->enabled test, then the renderer output is guaranteed to be there, so we can just destroy it. Destroying it before unmap makes the sequence match better the enable path. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Ian Ray <ian.ray@ge.com> Acked-by Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
a51e71fbf0
commit
61e5a2727a
1 changed files with 1 additions and 3 deletions
|
|
@ -485,11 +485,9 @@ fbdev_output_disable_handler(struct weston_output *base)
|
|||
if (!base->enabled)
|
||||
return 0;
|
||||
|
||||
pixman_renderer_output_destroy(&output->base);
|
||||
fbdev_frame_buffer_unmap(output);
|
||||
|
||||
if (base->renderer_state != NULL)
|
||||
pixman_renderer_output_destroy(base);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue