forked from enlightenment/efl
wayland-shm: Assign buffers in the swap_mode callback
Summary: This is when we're about to start a new render, so it's the best time to set up the next buffer to draw to. Reviewers: zmike, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2892
This commit is contained in:
parent
ebea504cbc
commit
997e84f14e
|
@ -255,6 +255,8 @@ _evas_outbuf_swap_mode_get(Outbuf *ob)
|
|||
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
if (!_evas_shm_surface_assign(ob->surface)) return MODE_FULL;
|
||||
|
||||
/* This was broken, for now we just do full redraws */
|
||||
return MODE_FULL;
|
||||
|
||||
|
|
|
@ -426,8 +426,6 @@ _evas_shm_surface_data_get(Shm_Surface *surface, int *w, int *h)
|
|||
{
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
_evas_shm_surface_assign(surface);
|
||||
|
||||
if (w) *w = 0;
|
||||
if (h) *h = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue