wayland_egl: Fix rendering on systems without buffer age
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 17 Aug 2016 21:22:54 +0000 (16:22 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 17 Aug 2016 21:24:05 +0000 (16:24 -0500)
If buffer age isn't present we really want to return MODE_FULL, but we were
previously returning MODE_AUTO.

On recent mali drivers this resulted in accidental partial updates leading
to incorrect rendering.

src/modules/evas/engines/wayland_egl/evas_wl_main.c

index a0ac4fa..710202f 100644 (file)
@@ -388,6 +388,7 @@ eng_outbuf_swap_mode_get(Outbuf *ob)
         return swap_mode;
      }
 
+   if (ob->swap_mode == MODE_AUTO) return MODE_FULL;
    return ob->swap_mode;
 }