aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-09-20 15:06:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-09-21 07:11:07 +0000
commit046d9596575c2dfac5db0d151179711f89b52661 (patch)
tree8a6271aa4db4bcd1716f9e746e97deefd7eb5181
parentrender: xcursor_is_valid(): don't crash when there's no theme loaded (diff)
shm: fix compilation when FORCED_DOUBLE_BUFFERING is enabled
-rw-r--r--shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shm.c b/shm.c
index 04cec211..bbf6f933 100644
--- a/shm.c
+++ b/shm.c
@@ -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
{