From 9887da5c823e1b7d8e31cff39793e4ebccaf83b1 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Fri, 12 Mar 2021 13:22:16 +0900 Subject: [PATCH] Enable explicit_fence_sync feature defaultly. Change-Id: I44a63dc2df55d54372a8ddfe2392f618489ca1da Signed-off-by: Joonbum Ko --- src/tpl_wl_egl_thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 8618311..bd4ba82 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -372,14 +372,14 @@ __cb_wl_resistry_global_callback(void *data, struct wl_registry *wl_registry, TPL_DEBUG("bind wp_presentation_interface"); } else if (strcmp(interface, "zwp_linux_explicit_synchronization_v1") == 0) { char *env = tpl_getenv("TPL_EFS"); - if (env && atoi(env)) { + if (env && !atoi(env)) { + wl_egl_display->use_explicit_sync = TPL_FALSE; + } else { wl_egl_display->explicit_sync = wl_registry_bind(wl_registry, name, &zwp_linux_explicit_synchronization_v1_interface, 1); wl_egl_display->use_explicit_sync = TPL_TRUE; TPL_DEBUG("bind zwp_linux_explicit_synchronization_v1_interface"); - } else { - wl_egl_display->use_explicit_sync = TPL_FALSE; } } } -- 2.7.4