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.
This commit is contained in:
Derek Foreman 2016-12-06 16:17:57 -06:00
parent 4258fa4f70
commit b897d86943
1 changed files with 1 additions and 0 deletions

View File

@ -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;