Clean up resources when plane is reassigned

This commit is contained in:
Scott Anderson 2017-08-05 21:29:58 +12:00
parent 2f8b5c4448
commit aedfa27d3a
3 changed files with 110 additions and 63 deletions

View file

@ -206,7 +206,7 @@ bool wlr_output_set_cursor(struct wlr_output *output,
output->cursor.texture = wlr_render_surface_init(output->cursor.renderer);
}
wlr_surface_attach_pixels(output->cursor.texture, WL_SHM_FORMAT_ABGR8888,
wlr_surface_attach_pixels(output->cursor.texture, WL_SHM_FORMAT_ARGB8888,
stride, width, height, buf);
return true;