shm: fix compilation when FORCED_DOUBLE_BUFFERING is enabled

This commit is contained in:
Daniel Eklöf 2024-09-20 17:06:47 +02:00
parent e2aeb7f336
commit 046d959657
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
shm.c
View file

@ -577,8 +577,8 @@ shm_get_buffer(struct buffer_chain *chain, int width, int height, bool with_alph
buf->public.age++;
else
#if FORCED_DOUBLE_BUFFERING
if (buf->age == 0)
buf->age++;
if (buf->public.age == 0)
buf->public.age++;
else
#endif
{