forked from enlightenment/efl
wayland_shm: Don't use number of buffers in swap mode calculation
The number of allocated buffers shouldn't change a thing...
This commit is contained in:
parent
f92c2d2330
commit
745435deab
|
@ -270,8 +270,7 @@ _evas_outbuf_swap_mode_get(Outbuf *ob)
|
|||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
age = _evas_shm_surface_assign(ob->surface);
|
||||
if (age > ob->surface->num_buff) return MODE_FULL;
|
||||
else if (age == 1) return MODE_COPY;
|
||||
if (age == 1) return MODE_COPY;
|
||||
else if (age == 2) return MODE_DOUBLE;
|
||||
else if (age == 3) return MODE_TRIPLE;
|
||||
else if (age == 4) return MODE_QUADRUPLE;
|
||||
|
|
Loading…
Reference in New Issue