aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
{