From 78a0aea2701667e7899442273c039bd037f9ce0f Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Mon, 20 Feb 2012 19:40:47 +0900 Subject: [PATCH] fix OPENGL issue Change-Id: I748ea9ea9b295f92b6711c12fd2ef347fb4b4f9c --- src/lib/elm_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 77bb3bf..ea0603b 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -424,6 +424,17 @@ elm_quicklaunch_sub_init(int argc, edje_init(); _elm_module_init(); _elm_config_sub_init(); +#define ENGINE_COMPARE(name) (!strcmp(_elm_config->engine, name)) + if (ENGINE_COMPARE(ELM_SOFTWARE_X11) || + ENGINE_COMPARE(ELM_SOFTWARE_16_X11) || + ENGINE_COMPARE(ELM_XRENDER_X11) || + ENGINE_COMPARE(ELM_OPENGL_X11)) +#undef ENGINE_COMPARE + { +#ifdef HAVE_ELEMENTARY_X + ecore_x_init(NULL); +#endif + } ecore_evas_init(); // FIXME: check errors #ifdef HAVE_ELEMENTARY_ECORE_IMF ecore_imf_init(); -- 2.7.4