seoz pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=15b6bd99ef222892914d7b49532d7a3a388a3057
commit 15b6bd99ef222892914d7b49532d7a3a388a3057 Author: Daniel Juyung Seo <[email protected]> Date: Sun Jan 12 17:01:02 2014 +0900 ecore_evas_x: Fix gl_sync_draw_done initialize routine to handle exceptional case. As ECORE_EVAS_GL_SYNC_DRAW_DONE is an environment variable, that could have unexpected value like 2 or 3. So set gl_sync_draw_done to 1 only when the env variable is 1. --- src/modules/ecore_evas/engines/x/ecore_evas_x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c index 3795788..0019128 100644 --- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c +++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c @@ -1435,8 +1435,9 @@ _ecore_evas_x_event_window_show(void *data EINA_UNUSED, int type EINA_UNUSED, vo if (ee->gl_sync_draw_done < 0) { - if (getenv("ECORE_EVAS_GL_SYNC_DRAW_DONE")) - ee->gl_sync_draw_done = atoi(getenv("ECORE_EVAS_GL_SYNC_DRAW_DONE")); + char *sync = getenv("ECORE_EVAS_GL_SYNC_DRAW_DONE"); + if (sync && (atoi(sync) == 1)) + ee->gl_sync_draw_done = 1; else ee->gl_sync_draw_done = 0; } --
