From c10542cb41f072171f72cc2c8263b7b30f7aa2fc Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 18 May 2020 13:33:24 +0900 Subject: [PATCH] doctor: bufmgr has to be initialized as a server explicitly. The doctor as a display server has to initialize a bufmgr for server explicitly. Otherwise, tbm_bufmgr_init might be failed in case of checking an environment variable of TBM_SERVER on tbm library get removed. Change-Id: Iae59246871cc59b3a6739e871f35bbc1426e53ca --- src/bin/doctor/doctor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/doctor/doctor.c b/src/bin/doctor/doctor.c index d542ba8..1a7b60a 100644 --- a/src/bin/doctor/doctor.c +++ b/src/bin/doctor/doctor.c @@ -258,7 +258,7 @@ int main(int argc, char *argv[]) PEPPER_CHECK(compositor, return EXIT_FAILURE, "Failed to create compositor !\n"); /* init tbm buffer manager */ - bufmgr = tbm_bufmgr_init(-1); + bufmgr = tbm_bufmgr_server_init(); PEPPER_CHECK(bufmgr, goto shutdown_on_failure, "Failed to init tbm buffer manager !\n"); res = tbm_bufmgr_bind_native_display(bufmgr, (void *)pepper_compositor_get_display(compositor)); PEPPER_CHECK(res, goto shutdown_on_failure, "Failed to bind native display with tbm buffer manager !\n"); -- 2.34.1