diff options
author | Philip Langdale <philipl@overt.org> | 2019-11-16 15:30:13 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-11-16 15:35:32 -0800 |
commit | ba370e95992177625fa8f804d0bda55d09f1a43b (patch) | |
tree | b2f5034f9d68aed37ded4d655ec9aa188479d7d9 /video/out | |
parent | 0d8a6c698491a0b968fca12eeeffa6fedfa5bac6 (diff) | |
download | mpv-ba370e95992177625fa8f804d0bda55d09f1a43b.tar.bz2 mpv-ba370e95992177625fa8f804d0bda55d09f1a43b.tar.xz |
vo_gpu: context_glx: Add X11 native resource
Surprisingly, we've managed to get this far without context_glx ever
adding the X11 display as a native resource. But with the recent change
to attempt to enable vdpau when using EGL, the hwdec now requires the
display to be added. So let's add it.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/context_glx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/context_glx.c b/video/out/opengl/context_glx.c index b415372e62..4d9d993121 100644 --- a/video/out/opengl/context_glx.c +++ b/video/out/opengl/context_glx.c @@ -339,6 +339,8 @@ static bool glx_init(struct ra_ctx *ctx) if (!ra_gl_ctx_init(ctx, gl, params)) goto uninit; + ra_add_native_resource(ctx->ra, "x11", vo->x11->display); + return true; uninit: |