From ba370e95992177625fa8f804d0bda55d09f1a43b Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 16 Nov 2019 15:30:13 -0800 Subject: 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. --- video/out/opengl/context_glx.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3