mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output/render: Drop buffer age from wlr_output_begin_render_pass
For compositors wanting to damage track, `wlr_damage_ring_rotate_buffer()` should be used and the damage should be set on the passed state.
This commit is contained in:
parent
62cc96b3a4
commit
eebaca8dbf
10 changed files with 11 additions and 16 deletions
|
|
@ -199,13 +199,12 @@ bool output_pick_format(struct wlr_output *output,
|
|||
}
|
||||
|
||||
struct wlr_render_pass *wlr_output_begin_render_pass(struct wlr_output *output,
|
||||
struct wlr_output_state *state, int *buffer_age,
|
||||
struct wlr_buffer_pass_options *render_options) {
|
||||
struct wlr_output_state *state, struct wlr_buffer_pass_options *render_options) {
|
||||
if (!wlr_output_configure_primary_swapchain(output, state, &output->swapchain)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct wlr_buffer *buffer = wlr_swapchain_acquire(output->swapchain, buffer_age);
|
||||
struct wlr_buffer *buffer = wlr_swapchain_acquire(output->swapchain, NULL);
|
||||
if (buffer == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue