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 b70601c56a..f6e5f99e1a 100644 --- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c +++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c @@ -1432,6 +1432,7 @@ _ecore_evas_x_event_window_show(void *data EINA_UNUSED, int type EINA_UNUSED, vo ee = ecore_event_window_match(e->win); if (!ee) return ECORE_CALLBACK_PASS_ON; /* pass on event */ if (e->win != ee->prop.window) return ECORE_CALLBACK_PASS_ON; + /* some GL drivers are doing buffer copy in a separate thread. * we need to check whether GL driver sends SYNC_DRAW_DONE msg afger copying * that are required in order to exactly render. @@ -1439,10 +1440,11 @@ _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")); + ee->gl_sync_draw_done = atoi(getenv("ECORE_EVAS_GL_SYNC_DRAW_DONE")); else - ee->gl_sync_draw_done = 0; + ee->gl_sync_draw_done = 0; } + if (first_map_bug < 0) { char *bug = NULL;