From 25a167d511b9f02e8ae2e7462f7f631ae3393b14 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Wed, 9 Jun 2021 12:20:44 +0900 Subject: [PATCH] Resolve build warning related to backend init functions. Change-Id: I08419d24c1411051029d4db6406682be0628db15 Signed-off-by: Joonbum Ko --- src/tpl.c | 2 +- src/tpl_internal.h | 3 ++- src/tpl_wl_egl_thread.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tpl.c b/src/tpl.c index 5482bc1..1f2bd4e 100644 --- a/src/tpl.c +++ b/src/tpl.c @@ -274,7 +274,7 @@ __tpl_display_choose_backend(tpl_handle_t native_dpy) if (__tpl_display_choose_backend_tbm(native_dpy) == TPL_TRUE) return TPL_BACKEND_TBM; if (wl_egl_thread) { - if (__tpl_display_choose_backend_wl_egl_thread2(native_dpy)) + if (__tpl_display_choose_backend_wl_egl_thread(native_dpy)) return TPL_BACKEND_WAYLAND_THREAD; } else { if (__tpl_display_choose_backend_wayland_egl(native_dpy)) diff --git a/src/tpl_internal.h b/src/tpl_internal.h index 97a07ef..0fa3988 100755 --- a/src/tpl_internal.h +++ b/src/tpl_internal.h @@ -219,7 +219,8 @@ tpl_backend_type_t __tpl_display_choose_backend(tpl_handle_t native_dpy); tpl_bool_t __tpl_display_choose_backend_tbm(tpl_handle_t native_dpy); tpl_bool_t __tpl_display_choose_backend_wayland_egl(tpl_handle_t native_dpy); tpl_bool_t __tpl_display_choose_backend_wl_egl_thread(tpl_handle_t native_dpy); -tpl_bool_t __tpl_display_choose_backend_wayland_vk_wsi(tpl_handle_t native_dpy); +tpl_bool_t __tpl_display_choose_backend_wayland_vk_wsi_thread(tpl_handle_t native_dpy); +//tpl_bool_t __tpl_display_choose_backend_wayland_vk_wsi(tpl_handle_t native_dpy); //tpl_bool_t __tpl_display_choose_backend_x11_dri2(tpl_handle_t native_dpy); //unused //tpl_bool_t __tpl_display_choose_backend_x11_dri3(tpl_handle_t native_dpy); //unused void __tpl_display_init_backend(tpl_display_t *display, diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 7813981..32d5f22 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -1053,7 +1053,7 @@ __tpl_wl_egl_display_get_buffer_from_native_pixmap(tpl_handle_t pixmap) } tpl_bool_t -__tpl_display_choose_backend_wl_egl_thread2(tpl_handle_t native_dpy) +__tpl_display_choose_backend_wl_egl_thread(tpl_handle_t native_dpy) { struct wl_interface *wl_egl_native_dpy = *(void **) native_dpy; -- 2.34.1