derekf pushed a commit to branch master.

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

commit b897d869438ba0779347543eb4e3f09c1e446d2c
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Tue Dec 6 16:17:57 2016 -0600

    wayland_shm: Clear busy status when replacing an unassigned buffer
    
    If we render fast enough we can use more than one buffer before the
    compositor assigns us buffer ids.  We need to be careful to clear the
    busy bit on all but the most recent one.
---
 src/modules/evas/engines/wayland_shm/evas_dmabuf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c 
b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index df04b5e..c75d47d 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -620,6 +620,7 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle 
*rects, unsigned int count,
     * most recently filled unassigned buffer and make sure it gets
     * displayed.
     */
+   if (surface->pre) surface->pre->busy = EINA_FALSE;
    if (!b->wl_buffer)
      {
         surface->pre = b;

-- 


Reply via email to