mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
sway: create wlr_renderer and wlr_allocator
wlroots now required the compositor to create its own wlr_renderer and wlr_allocator to initialize the wlr_output
This commit is contained in:
parent
cbecc5cbae
commit
5865af75cf
5 changed files with 31 additions and 19 deletions
|
|
@ -547,8 +547,7 @@ static void render_titlebar_text_texture(struct sway_output *output,
|
|||
cairo_surface_flush(surface);
|
||||
unsigned char *data = cairo_image_surface_get_data(surface);
|
||||
int stride = cairo_image_surface_get_stride(surface);
|
||||
struct wlr_renderer *renderer = wlr_backend_get_renderer(
|
||||
output->wlr_output->backend);
|
||||
struct wlr_renderer *renderer = output->wlr_output->renderer;
|
||||
*texture = wlr_texture_from_pixels(
|
||||
renderer, DRM_FORMAT_ARGB8888, stride, width, height, data);
|
||||
cairo_surface_destroy(surface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue