From 2c6d42e70488e00ae0290b2edc27a6eb592bada7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 15 Dec 2019 23:16:36 +0100 Subject: vo_gpu: x11egl: log EGL config ID Somewhat useful for debugging. --- video/out/opengl/context_x11egl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c index 15a9600de7..a829aad85e 100644 --- a/video/out/opengl/context_x11egl.c +++ b/video/out/opengl/context_x11egl.c @@ -117,12 +117,16 @@ static bool mpegl_init(struct ra_ctx *ctx) if (!mpegl_create_context_cb(ctx, p->egl_display, cb, &p->egl_context, &config)) goto uninit; - int vID, n; + int cid, vID, n; + if (!eglGetConfigAttrib(p->egl_display, config, EGL_CONFIG_ID, &cid)) { + MP_FATAL(ctx, "Getting EGL_CONFIG_ID failed!\n"); + goto uninit; + } if (!eglGetConfigAttrib(p->egl_display, config, EGL_NATIVE_VISUAL_ID, &vID)) { MP_FATAL(ctx, "Getting X visual ID failed!\n"); goto uninit; } - MP_VERBOSE(ctx, "chose visual 0x%x\n", vID); + MP_VERBOSE(ctx, "Choosing visual EGL config 0x%x, visual ID 0x%x\n", cid, vID); XVisualInfo template = {.visualid = vID}; XVisualInfo *vi = XGetVisualInfo(vo->x11->display, VisualIDMask, &template, &n); -- cgit v1.2.3