gl_drm: Move the gl symbol check to immediately after display init
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 7 Mar 2018 19:11:45 +0000 (13:11 -0600)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 11:10:50 +0000 (20:10 +0900)
We don't actually need a context first, just an initialized display.

src/modules/evas/engines/gl_drm/evas_outbuf.c

index aff5de8..b123535 100755 (executable)
@@ -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;