aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-19 16:21:54 -0500
committerAlexander Orzechowski <alex@ozal.ski>2023-12-03 05:29:05 +0000
commit6e03d3015e1668bd70266b0ee4b0720b86ca59c7 (patch)
treefadbbd37030501549d4119c2c9823081a2b59572 /render
parentd3a339a03e320c397696d3d0f49567670146a7a4 (diff)
swapchain: Add wlr_swapchain_has_buffer
Diffstat (limited to 'render')
-rw-r--r--render/swapchain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/swapchain.c b/render/swapchain.c
index a2b6373b..a50dae5c 100644
--- a/render/swapchain.c
+++ b/render/swapchain.c
@@ -113,7 +113,7 @@ struct wlr_buffer *wlr_swapchain_acquire(struct wlr_swapchain *swapchain,
return slot_acquire(swapchain, free_slot, age);
}
-static bool swapchain_has_buffer(struct wlr_swapchain *swapchain,
+bool wlr_swapchain_has_buffer(struct wlr_swapchain *swapchain,
struct wlr_buffer *buffer) {
for (size_t i = 0; i < WLR_SWAPCHAIN_CAP; i++) {
struct wlr_swapchain_slot *slot = &swapchain->slots[i];
@@ -128,7 +128,7 @@ void wlr_swapchain_set_buffer_submitted(struct wlr_swapchain *swapchain,
struct wlr_buffer *buffer) {
assert(buffer != NULL);
- if (!swapchain_has_buffer(swapchain, buffer)) {
+ if (!wlr_swapchain_has_buffer(swapchain, buffer)) {
return;
}