raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=95e5b988136d3f5e31d2a395beb77e172a392793

commit 95e5b988136d3f5e31d2a395beb77e172a392793
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Sep 15 16:25:20 2015 +0900

    fix elm performance example to init elm properly and not do engine stuff
    
    cleanup of examples
---
 src/examples/performance/performance.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/examples/performance/performance.c 
b/src/examples/performance/performance.c
index 968418e..99073e6 100644
--- a/src/examples/performance/performance.c
+++ b/src/examples/performance/performance.c
@@ -589,16 +589,7 @@ EAPI_MAIN
     at_port_h mf_at_port = NULL;
 #endif
 
-   if (!elm_init(0, 0)) return 1;
-
-   elm_config_engine_set("software_x11");
-   engine = elm_config_engine_get();
-
-   if (engine != NULL && strcmp("software_x11", engine))
-     {
-        fprintf(stdout, "There is elementary not support OpenGL engine");
-        exit(1);
-     }
+   if (!elm_init(argc, argv)) return 1;
 
    elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
    win = elm_win_add(NULL, "3D Perfomance", ELM_WIN_BASIC);

-- 


Reply via email to