evas-wayland-shm: Fix max buffer age
authorChris Michael <cp.michael@samsung.com>
Wed, 26 Oct 2016 15:19:28 +0000 (11:19 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 26 Oct 2016 15:19:28 +0000 (11:19 -0400)
Highest possible buffer age should actually be 4, not the number of
available buffers.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_shm.c

index 492f6be..e051b25 100644 (file)
@@ -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;