1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 08:33:34 +00:00

vo_gpu_next: expose EGLDisplay to pl_gpu

Straightforward and enables the import/export of dmabufs.
This commit is contained in:
Niklas Haas 2022-02-25 22:50:36 +01:00 committed by Niklas Haas
parent d4fc44e711
commit 4b7671cf36

View File

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