From 0bd03a8e2676f38a40ed4fcb8bd9c095c75f11c2 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 5 Jul 2025 13:02:31 +0200 Subject: [PATCH] swapchain: fix age --- src/allocator/Swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allocator/Swapchain.cpp b/src/allocator/Swapchain.cpp index 143542a..458a521 100644 --- a/src/allocator/Swapchain.cpp +++ b/src/allocator/Swapchain.cpp @@ -66,7 +66,7 @@ SP Aquamarine::CSwapchain::next(int* age) { lastAcquired = (lastAcquired + 1) % options.length; if (age) - *age = 1; + *age = options.length; // we always just rotate return buffers.at(lastAcquired); }