render: use the first free swapchain slot

Signed-off-by: liupeng <liupeng01@kylinos.cn>
This commit is contained in:
liupeng 2025-09-22 14:19:39 +08:00
parent 5529aae3e6
commit 7dcb3fcd4b

View file

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