aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-09-14 10:38:37 +0200
committerGravatar wm4 <wm4@nowhere>2016-09-14 10:38:37 +0200
commit215268ea34796c26266b013cbb0ebb2a1d63f3fe (patch)
treef1073895320cc9047b0edac560790a72b443a9e4 /video/out/opengl
parentd2e8bc449986e012f257249a996386bd323febd0 (diff)
vo_opengl: EGL: dump some version info
Diffstat (limited to 'video/out/opengl')
-rw-r--r--video/out/opengl/egl_helpers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/opengl/egl_helpers.c b/video/out/opengl/egl_helpers.c
index a5ffd5cf95..598e3512ae 100644
--- a/video/out/opengl/egl_helpers.c
+++ b/video/out/opengl/egl_helpers.c
@@ -125,6 +125,8 @@ static bool create_context(EGLDisplay display, struct mp_log *log, int msgl,
return true;
}
+#define STR_OR_ERR(s) ((s) ? (s) : "(error)")
+
// Create a context and return it and the config it was created with. If it
// returns false, the out_* pointers are set to NULL.
// vo_flags is a combination of VOFLAG_* values.
@@ -134,6 +136,12 @@ bool mpegl_create_context(EGLDisplay display, struct mp_log *log, int vo_flags,
*out_context = NULL;
*out_config = NULL;
+ const char *version = eglQueryString(display, EGL_VERSION);
+ const char *vendor = eglQueryString(display, EGL_VENDOR);
+ const char *apis = eglQueryString(display, EGL_CLIENT_APIS);
+ mp_verbose(log, "EGL_VERSION=%s\nEGL_VENDOR=%s\nEGL_CLIENT_APIS=%s\n",
+ STR_OR_ERR(version), STR_OR_ERR(vendor), STR_OR_ERR(apis));
+
int clean_flags = vo_flags & ~(unsigned)(VOFLAG_GLES | VOFLAG_NO_GLES);
int msgl = vo_flags & VOFLAG_PROBING ? MSGL_V : MSGL_FATAL;