glcontextegl: only dump configs once

This commit is contained in:
Matthew Waters 2018-06-22 22:43:08 +10:00
parent d6ae44b1d0
commit 76f99f803b

View file

@ -409,8 +409,6 @@ gst_gl_context_egl_choose_config (GstGLContextEGL * egl, GstGLAPI gl_api,
EGLint config_attrib[20];
EGLint egl_api = 0;
gst_gl_context_egl_dump_all_configs (egl);
create_context =
gst_gl_check_extension ("EGL_KHR_create_context", egl->egl_exts);
/* silence unused warnings */
@ -602,6 +600,8 @@ gst_gl_context_egl_create_context (GstGLContext * context,
egl->egl_exts = eglQueryString (egl->egl_display, EGL_EXTENSIONS);
gst_gl_context_egl_dump_all_configs (egl);
if (gl_api & (GST_GL_API_OPENGL | GST_GL_API_OPENGL3)) {
GstGLAPI chosen_gl_api = 0;
gint i;