mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
Nuke wlr_client_buffer
This abstraction is incompatible with wlr_raster in every way, let's just use the client submitted buffers directly. This will regress a couple of things until wlr_raster has been fully integrated.
This commit is contained in:
parent
d8def1aa65
commit
ba8230b00a
9 changed files with 21 additions and 203 deletions
|
|
@ -56,7 +56,8 @@ static void render_surface(struct wlr_surface *surface,
|
|||
struct render_data *rdata = data;
|
||||
struct wlr_output *output = rdata->output;
|
||||
|
||||
struct wlr_texture *texture = wlr_surface_get_texture(surface);
|
||||
struct wlr_texture *texture = wlr_texture_from_buffer(output->renderer,
|
||||
surface->current.buffer);
|
||||
if (texture == NULL) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -77,6 +78,8 @@ static void render_surface(struct wlr_surface *surface,
|
|||
wlr_render_texture_with_matrix(rdata->renderer, texture, matrix, 1);
|
||||
|
||||
wlr_surface_send_frame_done(surface, rdata->when);
|
||||
|
||||
wlr_texture_destroy(texture);
|
||||
}
|
||||
|
||||
static void output_handle_frame(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue