evas wayland: always create gl context when non-existent

This commit is contained in:
Mike Blumenkrantz 2017-08-07 10:48:39 -04:00
parent 3e0c287da2
commit bc28c4b579
1 changed files with 3 additions and 4 deletions

View File

@ -150,9 +150,7 @@ eng_window_new(Evas_Engine_Info_Wayland *einfo, int w, int h, Render_Engine_Swap
return NULL;
}
if (w && h)
eng_window_resurf(gw);
else
if (!gw->gl_context)
{
eng_gl_symbols(gw->egl_disp);
@ -164,8 +162,9 @@ eng_window_new(Evas_Engine_Info_Wayland *einfo, int w, int h, Render_Engine_Swap
gw->gl_context->egldisp = gw->egl_disp;
gw->gl_context->eglctxt = gw->egl_context;
eng_window_use(gw);
}
if (w && h)
eng_window_resurf(gw);
return gw;
}