1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-25 21:01:48 +00:00

gpu/context: properly guard wldmabuf context

This should only be added if the build has dmabuf-wayland enabled. This
fixes #10828.
This commit is contained in:
Dudemanguy 2022-11-03 17:20:32 -05:00
parent 445a3561d3
commit 2c53fb6a2b

View File

@ -114,7 +114,7 @@ static const struct ra_ctx_fns *contexts[] = {
#endif #endif
/* No API contexts: */ /* No API contexts: */
#if HAVE_WAYLAND #if HAVE_DMABUF_WAYLAND
&ra_ctx_wldmabuf, &ra_ctx_wldmabuf,
#endif #endif
}; };