mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 21:15:59 +01:00
backend: add error messages in attach_render impls
This commit is contained in:
parent
641c223d3c
commit
f3758d1d0a
4 changed files with 7 additions and 1 deletions
|
@ -114,7 +114,7 @@ bool drm_surface_make_current(struct wlr_drm_surface *surf,
|
|||
}
|
||||
|
||||
if (!wlr_renderer_bind_buffer(surf->renderer->wlr_rend, surf->back_buffer)) {
|
||||
wlr_log(WLR_ERROR, "Failed to attach buffer to renderer");
|
||||
wlr_log(WLR_ERROR, "Failed to bind buffer to renderer");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,11 +119,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;
|
||||
}
|
||||
|
||||
|
|
|
@ -101,10 +101,12 @@ 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(x11->renderer, output->back_buffer)) {
|
||||
wlr_log(WLR_ERROR, "Failed to bind buffer to renderer");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue