Merge branch '1015' into 'master'

render: use the first free swapchain slot

See merge request wlroots/wlroots!5175
This commit is contained in:
Liu Peng 2026-01-13 21:08:07 +08:00
commit 2b8c310b3f

View file

@ -90,6 +90,7 @@ struct wlr_buffer *wlr_swapchain_acquire(struct wlr_swapchain *swapchain) {
return slot_acquire(swapchain, slot); return slot_acquire(swapchain, slot);
} }
free_slot = slot; free_slot = slot;
break;
} }
if (free_slot == NULL) { if (free_slot == NULL) {
wlr_log(WLR_ERROR, "No free output buffer slot"); wlr_log(WLR_ERROR, "No free output buffer slot");