forked from enlightenment/efl
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.
This commit is contained in:
parent
881f4e9c75
commit
15b6bd99ef
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue