From e3abe714c3c477c97853f9c23f2020fca5e8c640 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Wed, 22 Apr 2020 16:43:42 +0900 Subject: [PATCH] Fixed to unuse sync_fd when frontbuffer rendering. Change-Id: Iad53c0071df08eb3cac63481eff4b7cde491fe3f Signed-off-by: Joonbum Ko --- src/tpl_wl_egl_thread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index e20801a..fac6875 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -580,6 +580,11 @@ __tpl_wl_egl_surface_enqueue_buffer(tpl_surface_t *surface, */ if (surface->frontbuffer == tbm_surface) wayland_egl_surface->need_to_enqueue = TPL_FALSE; + + if (sync_fence != -1) { + close(sync_fence); + sync_fence = -1; + } } if (sync_fence != -1) { -- 2.7.4