From 721bec7dde976c128a6dd9dff111ab2cf5101c31 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 18 Nov 2018 13:29:42 -0800 Subject: 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. --- video/out/opengl/hwdec_cuda.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/video/out/opengl/hwdec_cuda.c b/video/out/opengl/hwdec_cuda.c index af7ea6ca48..fee1f83f98 100644 --- a/video/out/opengl/hwdec_cuda.c +++ b/video/out/opengl/hwdec_cuda.c @@ -32,12 +32,17 @@ #include #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 -- cgit v1.2.3