From 745435deabfc4574137fa5bfc3a371b3a3105561 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 8 Apr 2016 14:28:56 -0500 Subject: [PATCH] wayland_shm: Don't use number of buffers in swap mode calculation The number of allocated buffers shouldn't change a thing... --- src/modules/evas/engines/wayland_shm/evas_outbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c index e03c1e257d..85fb15a698 100644 --- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c @@ -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;