gl_drm: Move the gl symbol check to immediately after display init

We don't actually need a context first, just an initialized display.
This commit is contained in:
Derek Foreman 2018-03-07 13:11:45 -06:00
parent fae4ad5fbb
commit f8658d25fa
1 changed files with 2 additions and 2 deletions

View File

@ -226,6 +226,8 @@ _evas_outbuf_egl_setup(Outbuf *ob)
return EINA_FALSE;
}
eng_gl_symbols(ob->egl.disp);
if (!eglGetConfigs(ob->egl.disp, NULL, 0, &ncfg) || (ncfg == 0))
{
ERR("eglGetConfigs() fail. code=%#x", eglGetError());
@ -334,8 +336,6 @@ _evas_outbuf_egl_setup(Outbuf *ob)
goto err;
}
eng_gl_symbols(ob->egl.disp);
ob->gl_context = glsym_evas_gl_common_context_new();
if (!ob->gl_context) goto err;