forked from enlightenment/efl
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:
parent
8b3e05a7f1
commit
bdcd84cd2c
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue