From 4b7671cf365e3fc421dcc55e070660dc42cf5793 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 25 Feb 2022 22:50:36 +0100 Subject: vo_gpu_next: expose EGLDisplay to pl_gpu Straightforward and enables the import/export of dmabufs. --- video/out/gpu_next/context.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/video/out/gpu_next/context.c b/video/out/gpu_next/context.c index 026cbe95fc..c24a7c197a 100644 --- a/video/out/gpu_next/context.c +++ b/video/out/gpu_next/context.c @@ -41,6 +41,9 @@ #if HAVE_GL #include "video/out/opengl/context.h" #include "video/out/opengl/ra_gl.h" +# if HAVE_EGL +#include +# endif #endif #if HAVE_VULKAN @@ -145,6 +148,10 @@ struct gpu_ctx *gpu_ctx_create(struct vo *vo, struct gl_video_opts *gl_opts) pl_opengl_params( .debug = ctx_opts->debug, .allow_software = ctx_opts->allow_sw, +# if HAVE_EGL + .egl_display = eglGetCurrentDisplay(), + .egl_context = eglGetCurrentContext(), +# endif ) ); if (!opengl) -- cgit v1.2.3