wayland_egl: Stop setting swap interval to 0

We have some "vsync" variable cargo culted from somewhere that is never
properly set, so is always 0 because it's in a calloced structure.

It's then used to set eglSwapInterval() to 0 always, which results
in mesa using wl_display_sync() instead of wl_surface_frame() for
its frame ready callback mechanism.

Remove it entirely and use the sensible default swapinterval.
This commit is contained in:
Derek Foreman 2017-01-03 17:07:54 -06:00
parent 641dfab516
commit 44c69195d3
2 changed files with 0 additions and 8 deletions

View File

@ -27,7 +27,6 @@ struct _Evas_Engine_Info_Wayland
Evas_Engine_Render_Mode render_mode;
Evas *evas;
Eina_Bool vsync : 1;
Eina_Bool indirect : 1;
Eina_Bool www_avail : 1;

View File

@ -516,13 +516,6 @@ eng_outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage, Tilebuf_Rect *buffer_
eng_window_use(ob);
glsym_evas_gl_common_context_done(ob->gl_context);
if (!ob->vsync)
{
if (ob->info->vsync) eglSwapInterval(ob->egl_disp, 1);
else eglSwapInterval(ob->egl_disp, 0);
ob->vsync = EINA_TRUE;
}
if ((glsym_eglSwapBuffersWithDamage) && (surface_damage) &&
(ob->swap_mode != MODE_FULL))
{