swapchain: fix age

This commit is contained in:
Vaxry 2025-07-05 13:02:31 +02:00
parent b3208e82ec
commit 0bd03a8e26
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -66,7 +66,7 @@ SP<IBuffer> 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);
}