summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-10-26 11:19:28 -0400
committerChris Michael <cp.michael@samsung.com>2016-10-26 11:19:28 -0400
commitd8600a4f25f7f3bfe034d67fbfaeab0be6b7388d (patch)
tree4697852e738e29fc086b7666d6d7d36bb5e90377 /src/modules/evas/engines/wayland_shm/evas_shm.c
parent2ceb37e14da41062c158b1126f34b40659b4ca64 (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 492f6be509..e051b2538a 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)
506 if (surface->leaf[i].valid && surface->leaf[i].drawn) 506 if (surface->leaf[i].valid && surface->leaf[i].drawn)
507 { 507 {
508 surface->leaf[i].age++; 508 surface->leaf[i].age++;
509 if (surface->leaf[i].age > surface->num_buff) 509 if (surface->leaf[i].age > 4)
510 { 510 {
511 surface->leaf[i].age = 0; 511 surface->leaf[i].age = 0;
512 surface->leaf[i].drawn = EINA_FALSE; 512 surface->leaf[i].drawn = EINA_FALSE;