mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 04:40:12 +01:00
swapchain: fix age
This commit is contained in:
parent
b3208e82ec
commit
0bd03a8e26
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue