aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/output/render.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/types/output/render.c b/types/output/render.c
index e6e74764..0926a94b 100644
--- a/types/output/render.c
+++ b/types/output/render.c
@@ -141,8 +141,8 @@ void output_clear_back_buffer(struct wlr_output *output) {
output->back_buffer = NULL;
}
-static bool output_attach_render(struct wlr_output *output,
- struct wlr_output_state *state, int *buffer_age) {
+bool wlr_output_attach_render(struct wlr_output *output, int *buffer_age) {
+ struct wlr_output_state *state = &output->pending;
if (!output_attach_back_buffer(output, state, buffer_age)) {
return false;
}
@@ -150,10 +150,6 @@ static bool output_attach_render(struct wlr_output *output,
return true;
}
-bool wlr_output_attach_render(struct wlr_output *output, int *buffer_age) {
- return output_attach_render(output, &output->pending, buffer_age);
-}
-
static bool output_attach_empty_back_buffer(struct wlr_output *output,
const struct wlr_output_state *state) {
assert(!(state->committed & WLR_OUTPUT_STATE_BUFFER));