check-gl: remove the error pop-up & exit code 27/29527/1
authorjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 28 Oct 2014 09:22:13 +0000 (18:22 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 29 Oct 2014 06:28:13 +0000 (15:28 +0900)
Remove error routine when the GL driver is Gallium.

Change-Id: Ic50b6cbf61e334e3e9c6727356257d436ad11445
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/emulator.c

index 0c2d317..27bad24 100644 (file)
@@ -251,29 +251,18 @@ static void prepare_opengl_acceleration(gchar * const kernel_cmdline)
 
         if (capability_check_gl == 1) {
             enable_yagl = 0;
-            LOG_INFO("<WARNING> 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
     }