mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
vo_gpu: hwdec_cuda: Guard GL and Vulkan headers properly
We are currently unnecessarily including vulkan headers even when not building with vulkan support. I also guarded the GL header inclusion even though this doesn't appear to break anything today. Fixes #6330.
This commit is contained in:
parent
edbe25f38a
commit
721bec7dde
@ -32,12 +32,17 @@
|
||||
#include <libavutil/hwcontext_cuda.h>
|
||||
|
||||
#include "video/out/gpu/hwdec.h"
|
||||
#include "video/out/gpu/utils.h"
|
||||
#include "formats.h"
|
||||
#include "options/m_config.h"
|
||||
#if HAVE_GL
|
||||
#include "ra_gl.h"
|
||||
#endif
|
||||
#if HAVE_VULKAN
|
||||
#include "video/out/vulkan/formats.h"
|
||||
#include "video/out/vulkan/ra_vk.h"
|
||||
#include "video/out/vulkan/utils.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_WIN32_DESKTOP
|
||||
#include <versionhelpers.h>
|
||||
|
Loading…
Reference in New Issue
Block a user