gl_drm: Move some extension queries to after context creation

Anything non-EGL we might query would have to be queried here, so
I'm moving the call here to protect us in the event that we need GL
extensions in the future.

I'm still a bit confused as to what string I should be passing to
evas_gl_symbols, though.
This commit is contained in:
Derek Foreman 2018-03-08 10:44:04 -06:00
parent 9594f09156
commit 609c86903f
3 changed files with 6 additions and 1 deletions

View File

@ -219,7 +219,6 @@ eng_gl_symbols(EGLDisplay edsp)
if (!dst) dst = (typ)glsym_eglGetProcAddress(sym);
exts = eglQueryString(edsp, EGL_EXTENSIONS);
glsym_evas_gl_symbols(glsym_eglGetProcAddress, exts);
FINDSYM(glsym_glEGLImageTargetTexture2DOES,
"glEGLImageTargetTexture2DOES", glsym_func_void);

View File

@ -65,6 +65,8 @@ extern Evas_GL_Common_Context_Resize_Call glsym_evas_gl_common_context_resize;
extern Evas_GL_Common_Buffer_Dump_Call glsym_evas_gl_common_buffer_dump;
extern Evas_GL_Preload_Render_Call glsym_evas_gl_preload_render_lock;
extern Evas_GL_Preload_Render_Call glsym_evas_gl_preload_render_unlock;
extern Evas_Gl_Symbols glsym_evas_gl_symbols;
extern void * (*glsym_eglGetProcAddress) (const char *a);
typedef struct _Render_Engine Render_Engine;
struct _Render_Engine

View File

@ -161,6 +161,7 @@ _evas_outbuf_init(void)
static Eina_Bool
_evas_outbuf_egl_setup(Outbuf *ob)
{
const char *exts;
int ctx_attr[5];
int cfg_attr[40];
int maj = 0, min = 0, n = 0, i = 0, cn = 0;
@ -307,6 +308,9 @@ _evas_outbuf_egl_setup(Outbuf *ob)
goto err;
}
exts = eglQueryString(ob->egl.disp, EGL_EXTENSIONS);
glsym_evas_gl_symbols(glsym_eglGetProcAddress, exts);
vendor = glGetString(GL_VENDOR);
renderer = glGetString(GL_RENDERER);
version = glGetString(GL_VERSION);