backend-vnc: destroy renderbuffer before renderer output state
Reorder pixman renderer output state and 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 <p.zabel@pengutronix.de>
This commit is contained in:
parent
8057f28b98
commit
51ef88a7f4
@ -663,11 +663,11 @@ vnc_output_disable(struct weston_output *base)
|
|||||||
if (!output->base.enabled)
|
if (!output->base.enabled)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
renderer->pixman->output_destroy(&output->base);
|
|
||||||
|
|
||||||
nvnc_display_unref(output->display);
|
nvnc_display_unref(output->display);
|
||||||
nvnc_fb_pool_unref(output->fb_pool);
|
nvnc_fb_pool_unref(output->fb_pool);
|
||||||
|
|
||||||
|
renderer->pixman->output_destroy(&output->base);
|
||||||
|
|
||||||
wl_event_source_remove(output->finish_frame_timer);
|
wl_event_source_remove(output->finish_frame_timer);
|
||||||
backend->output = NULL;
|
backend->output = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user