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:
Derek Foreman 2016-04-08 14:28:56 -05:00 committed by Mike Blumenkrantz
parent f92c2d2330
commit 745435deab
1 changed files with 1 additions and 2 deletions

View File

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