summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-30 09:34:10 +0100
committerwm4 <wm4@nowhere>2017-01-30 09:34:10 +0100
commitdccb752b5ff5beadc750a83fe58ce6ea6d49b373 (patch)
treed33988c2ec2c388d20dd3fd0630a4c239a246787
parent954625c1655ae9e0c016d6c5ea902ed369510c71 (diff)
downloadmpv-dccb752b5ff5beadc750a83fe58ce6ea6d49b373.tar.bz2
mpv-dccb752b5ff5beadc750a83fe58ce6ea6d49b373.tar.xz
build: fix --disable-gl if cuda is enabled
video/out/opengl/hwdec_cuda.c is enabled with cuda-hwaccel. But it makes only sense to build if GL is enabled, and in fact it fails to link without GL as it calls a specific GL helper function. In theory it would be perfectly possible to use cuda-copy with GL disabled. But I'm not bothering with the complexity.
-rw-r--r--wscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript b/wscript
index 789baae4a2..2cddc830d7 100644
--- a/wscript
+++ b/wscript
@@ -850,6 +850,7 @@ hwaccel_features = [
}, {
'name': '--cuda-hwaccel',
'desc': 'CUDA hwaccel',
+ 'deps': [ 'gl' ],
'func': check_cc(fragment=load_fragment('cuda.c'),
use='libav'),
}, {