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>
This commit is contained in:
Chris Michael 2016-10-26 11:19:28 -04:00
parent 2ceb37e14d
commit d8600a4f25
1 changed files with 1 additions and 1 deletions

View 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;