aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-02-18 22:14:19 +0100
committerSimon Ser <contact@emersion.fr>2021-02-18 22:14:19 +0100
commitf3758d1d0acc4e07c9a88647c77a2ed668016e0b (patch)
treec736dee2295f900aabe799a52cb73e4116aa5e08 /backend/headless
parent641c223d3cf9a8678a579085a1355c22c1793eef (diff)
backend: add error messages in attach_render impls
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c
index abd1ac45..578876ea 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -46,11 +46,13 @@ static bool output_attach_render(struct wlr_output *wlr_output,
wlr_buffer_unlock(output->back_buffer);
output->back_buffer = wlr_swapchain_acquire(output->swapchain, buffer_age);
if (!output->back_buffer) {
+ wlr_log(WLR_ERROR, "Failed to acquire swapchain buffer");
return false;
}
if (!wlr_renderer_bind_buffer(output->backend->renderer,
output->back_buffer)) {
+ wlr_log(WLR_ERROR, "Failed to bind buffer to renderer");
return false;
}