evas-drm: Don't re-use the current buffer immediately

If we don't block the current buffer from being assigned to the new
current buffer we'll end up rendering into the same buffer over and over
and never actually double buffer.
This commit is contained in:
Derek Foreman 2016-05-20 11:46:46 -05:00 committed by Chris Michael
parent 8b3e05a7f1
commit bdcd84cd2c
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ _outbuf_fb_wait(Outbuf *ob)
{
for (i = 0; i < ob->priv.num; i++)
{
if (&ob->priv.ofb[i] == ob->priv.current) continue;
if (ob->priv.ofb[i].busy) continue;
if (ob->priv.ofb[i].valid) return &(ob->priv.ofb[i]);
}