summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-15 16:25:20 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-15 16:25:20 +0900
commit95e5b988136d3f5e31d2a395beb77e172a392793 (patch)
tree8497153e817f8bdc50f718db47e118ba61d65704
parent82d549ab8aac2a7fd0dc175f059eb75fd955c891 (diff)
fix elm performance example to init elm properly and not do engine stuff
cleanup of examples
-rw-r--r--src/examples/performance/performance.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/examples/performance/performance.c b/src/examples/performance/performance.c
index 968418e3f..99073e6be 100644
--- a/src/examples/performance/performance.c
+++ b/src/examples/performance/performance.c
@@ -589,16 +589,7 @@ EAPI_MAIN
589 at_port_h mf_at_port = NULL; 589 at_port_h mf_at_port = NULL;
590#endif 590#endif
591 591
592 if (!elm_init(0, 0)) return 1; 592 if (!elm_init(argc, argv)) return 1;
593
594 elm_config_engine_set("software_x11");
595 engine = elm_config_engine_get();
596
597 if (engine != NULL && strcmp("software_x11", engine))
598 {
599 fprintf(stdout, "There is elementary not support OpenGL engine");
600 exit(1);
601 }
602 593
603 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 594 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
604 win = elm_win_add(NULL, "3D Perfomance", ELM_WIN_BASIC); 595 win = elm_win_add(NULL, "3D Perfomance", ELM_WIN_BASIC);