ee_drm: Fix max buffer age

The highest possible buffer age should actually be 4, not the number of
available buffers.
This commit is contained in:
Derek Foreman 2016-09-07 21:19:30 -05:00
parent bd3801247e
commit 1591e095d5
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ _outbuf_fb_assign(Outbuf *ob)
if ((ob->priv.ofb[i].valid) && (ob->priv.ofb[i].drawn))
{
ob->priv.ofb[i].age++;
if (ob->priv.ofb[i].age > ob->priv.num)
if (ob->priv.ofb[i].age > 4)
{
ob->priv.ofb[i].age = 0;
ob->priv.ofb[i].drawn = EINA_FALSE;