|
|
@ -101,10 +101,12 @@ static bool output_attach_render(struct wlr_output *wlr_output,
|
|
|
|
wlr_buffer_unlock(output->back_buffer);
|
|
|
|
wlr_buffer_unlock(output->back_buffer);
|
|
|
|
output->back_buffer = wlr_swapchain_acquire(output->swapchain, buffer_age);
|
|
|
|
output->back_buffer = wlr_swapchain_acquire(output->swapchain, buffer_age);
|
|
|
|
if (!output->back_buffer) {
|
|
|
|
if (!output->back_buffer) {
|
|
|
|
|
|
|
|
wlr_log(WLR_ERROR, "Failed to acquire swapchain buffer");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!wlr_renderer_bind_buffer(x11->renderer, output->back_buffer)) {
|
|
|
|
if (!wlr_renderer_bind_buffer(x11->renderer, output->back_buffer)) {
|
|
|
|
|
|
|
|
wlr_log(WLR_ERROR, "Failed to bind buffer to renderer");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|