summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-04-22 18:17:30 +0300
committerJan Ekström <jeebjp@gmail.com>2019-04-22 18:17:30 +0300
commitedbc1999145b5593098f09042947bf1b79323d2e (patch)
tree532e76f34a0dd4bd3ed5c7f0e326520764154a06
parent9b8d3eff78e4bf74486ebf6bc5c3706db423970a (diff)
downloadmpv-edbc1999145b5593098f09042947bf1b79323d2e.tar.bz2
mpv-edbc1999145b5593098f09042947bf1b79323d2e.tar.xz
vo_gpu/hwdec_cuda: fixup compilation with vulkan disabled
The actual code utilizing this enum was seemingly properly if'd, but not the enum in the struct itself. Fixes compilation.
-rw-r--r--video/out/opengl/hwdec_cuda.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_cuda.c b/video/out/opengl/hwdec_cuda.c
index 5e8e07f362..b2abd62f39 100644
--- a/video/out/opengl/hwdec_cuda.c
+++ b/video/out/opengl/hwdec_cuda.c
@@ -59,7 +59,9 @@ struct priv_owner {
const struct ra_format *format, int n);
void (*ext_uninit)(struct ra_hwdec_mapper *mapper, int n);
+#if HAVE_VULKAN
enum pl_handle_type handle_type;
+#endif
};
struct ext_gl {