From: jinhyung.jo Date: Tue, 28 Oct 2014 09:22:13 +0000 (+0900) Subject: check-gl: remove the error pop-up & exit code X-Git-Tag: TizenStudio_2.0_p3.0~407^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F29527%2F1;p=sdk%2Femulator%2Fqemu.git check-gl: remove the error pop-up & exit code Remove error routine when the GL driver is Gallium. Change-Id: Ic50b6cbf61e334e3e9c6727356257d436ad11445 Signed-off-by: Jinhyung Jo --- diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index 0c2d317..27bad24 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -251,29 +251,18 @@ static void prepare_opengl_acceleration(gchar * const kernel_cmdline) if (capability_check_gl == 1) { enable_yagl = 0; - LOG_INFO(" GL acceleration was disabled " - "due to the fail of GL check!\n"); + LOG_WARNING("GL acceleration was disabled " + "due to the fail of GL check!\n"); #ifndef CONFIG_LINUX } #else } else if (capability_check_gl == 2) { - int ret = 0; - gchar *cmd = NULL; - char exec_cmd[] = "zenity --error --no-wrap --text="; - char err_msg[] = - "\"You are using invalid graphic card driver for " - "the emulator.\n" - "You have to use the lastest vendor-provided graphic " - "card driver.\n\nFor more information, see under ubuntu" - " driver help page.\n" - "https://help.ubuntu.com/community/BinaryDriverHowto/\""; - int cmd_len = strlen(exec_cmd) + strlen(err_msg); - cmd = g_malloc0(cmd_len); - snprintf(cmd, cmd_len + 1, "%s%s", exec_cmd, err_msg); - ret = system(cmd); - LOG_SEVERE("%s\nzenity return=%d\n", err_msg, ret); - g_free(cmd); - exit(-1); + LOG_WARNING("You are using invalid graphic card driver for " + "the emulator.\nIt can cause serious problems.\n" + "You have to use the lastest vendor-provided " + "graphic card driver.\n\nFor more information, " + "see under ubuntu driver help page.\n" + "https://help.ubuntu.com/community/BinaryDriverHowto/\n"); } #endif }