libweston: print EGL information as early as possible

In the case where CreateContext/MakeCurrent fails, we still want to
know what the EGL driver is capable of.

Move the EGL info printing, just after the eglInitialize() call to
ensure that.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Emil Velikov 2018-10-18 15:58:09 +01:00 committed by Emil Velikov
parent 3bb047b605
commit da4f185faa
1 changed files with 2 additions and 1 deletions

View File

@ -3505,6 +3505,8 @@ gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
goto fail_with_error;
}
log_egl_info(gr->egl_display);
if (egl_choose_config(gr, config_attribs, visual_id,
n_ids, &gr->egl_config) < 0) {
weston_log("failed to choose EGL config\n");
@ -3741,7 +3743,6 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface)
gr->gl_version = GR_GL_VERSION(2, 0);
}
log_egl_info(gr->egl_display);
log_gl_info();
gr->image_target_texture_2d =