diff options
author | Niklas Haas <git@haasn.dev> | 2022-02-25 22:50:36 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-03-03 13:06:05 +0100 |
commit | 4b7671cf365e3fc421dcc55e070660dc42cf5793 (patch) | |
tree | 5fee46b6fab3507f43e22ed93017da8ff33666e2 /video/out | |
parent | d4fc44e711aee61b34edb654587d6380abe39b05 (diff) | |
download | mpv-4b7671cf365e3fc421dcc55e070660dc42cf5793.tar.bz2 mpv-4b7671cf365e3fc421dcc55e070660dc42cf5793.tar.xz |
vo_gpu_next: expose EGLDisplay to pl_gpu
Straightforward and enables the import/export of dmabufs.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu_next/context.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <EGL/egl.h> +# 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) |