discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=745435deabfc4574137fa5bfc3a371b3a3105561

commit 745435deabfc4574137fa5bfc3a371b3a3105561
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Apr 8 14:28:56 2016 -0500

    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 e03c1e2..85fb15a 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;

-- 


Reply via email to