From d8600a4f25f7f3bfe034d67fbfaeab0be6b7388d Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 26 Oct 2016 11:19:28 -0400 Subject: [PATCH] evas-wayland-shm: Fix max buffer age Highest possible buffer age should actually be 4, not the number of available buffers. @fix Signed-off-by: Chris Michael --- src/modules/evas/engines/wayland_shm/evas_shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c index 492f6be..e051b25 100644 --- a/src/modules/evas/engines/wayland_shm/evas_shm.c +++ b/src/modules/evas/engines/wayland_shm/evas_shm.c @@ -506,7 +506,7 @@ _evas_shm_surface_assign(Surface *s) if (surface->leaf[i].valid && surface->leaf[i].drawn) { surface->leaf[i].age++; - if (surface->leaf[i].age > surface->num_buff) + if (surface->leaf[i].age > 4) { surface->leaf[i].age = 0; surface->leaf[i].drawn = EINA_FALSE; -- 2.7.4