devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bdcd84cd2cf3a9f30b38963af66d826487c8ed11

commit bdcd84cd2cf3a9f30b38963af66d826487c8ed11
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri May 20 11:46:46 2016 -0500

    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.
---
 src/modules/evas/engines/drm/evas_outbuf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index 4c87f2d..38feffd 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -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]);
           }

-- 


Reply via email to