doctor: bufmgr has to be initialized as a server explicitly. 47/233647/3
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 18 May 2020 04:33:24 +0000 (13:33 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 18 May 2020 05:13:10 +0000 (05:13 +0000)
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

index d542ba8..1a7b60a 100644 (file)
@@ -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");