diff options
author | wm4 <wm4@nowhere> | 2019-12-15 23:16:36 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-15 23:33:23 +0100 |
commit | 2c6d42e70488e00ae0290b2edc27a6eb592bada7 (patch) | |
tree | 63e4d45e65c0234fffbc7c76dc4c1ed73e71a773 | |
parent | 8e08a2ec972feb192fac27fa64f3ae68ad522d4a (diff) | |
download | mpv-2c6d42e70488e00ae0290b2edc27a6eb592bada7.tar.bz2 mpv-2c6d42e70488e00ae0290b2edc27a6eb592bada7.tar.xz |
vo_gpu: x11egl: log EGL config ID
Somewhat useful for debugging.
-rw-r--r-- | video/out/opengl/context_x11egl.c | 8 |
1 files 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); |