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.
This commit is contained in:
Philip Langdale 2019-11-16 15:30:13 -08:00
parent 0d8a6c6984
commit ba370e9599
1 changed files with 2 additions and 0 deletions

View File

@ -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: