diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2016-12-06 16:17:57 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2016-12-06 16:34:54 -0600 |
commit | b897d869438ba0779347543eb4e3f09c1e446d2c (patch) | |
tree | ca0cbdff722ff719bdabcf319c172eac0a5ddd95 /src/modules | |
parent | 4258fa4f70b88a014efd42a503a8b825693428ea (diff) | |
download | efl-b897d869438ba0779347543eb4e3f09c1e446d2c.tar.gz |
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.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/evas/engines/wayland_shm/evas_dmabuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c index df04b5e57b..c75d47d1f8 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; |