when async_render).
NB: If buffer is still valid, that means compositor is not finished
with it yet, so don't release it.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* check for valid buffer */
- if (!wb) return;
+ if ((!wb) || (wb->valid)) return;
/* kill the wl_buffer */
if (wb->buffer) wl_buffer_destroy(wb->buffer);
sent = wb;
}
- /* surface damage */
- /* printf("Damage Surface: %d %d %d %d\n", rect->x, rect->y, rect->w, rect->h); */
-
wl_surface_damage(ws->surface, rect->x, rect->y, rect->w, rect->h);
/* surface commit */