forked from enlightenment/efl
evas-drm: Check buffer validity in swap function
@bugfix: Check (and set) buffer validity before calling framebuffer_send. This fixes an issue where buffer was not valid, causing next_update_get to do full Copies. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b117d48159
commit
3692f0905c
|
@ -58,6 +58,9 @@ _evas_outbuf_buffer_swap(Outbuf *ob, Eina_Rectangle *rects, unsigned int count)
|
|||
|
||||
buff = &(ob->priv.buffer[ob->priv.curr]);
|
||||
|
||||
/* if this buffer is not valid, we need to set it */
|
||||
if (!buff->valid) evas_drm_outbuf_framebuffer_set(ob, buff);
|
||||
|
||||
/* mark the fb as dirty */
|
||||
_evas_outbuf_buffer_put(ob, buff, rects, count);
|
||||
|
||||
|
|
Loading…
Reference in New Issue