diff options
author | wm4 <wm4@nowhere> | 2017-01-30 09:34:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-30 09:34:10 +0100 |
commit | dccb752b5ff5beadc750a83fe58ce6ea6d49b373 (patch) | |
tree | d33988c2ec2c388d20dd3fd0630a4c239a246787 | |
parent | 954625c1655ae9e0c016d6c5ea902ed369510c71 (diff) | |
download | mpv-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-- | wscript | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -850,6 +850,7 @@ hwaccel_features = [ }, { 'name': '--cuda-hwaccel', 'desc': 'CUDA hwaccel', + 'deps': [ 'gl' ], 'func': check_cc(fragment=load_fragment('cuda.c'), use='libav'), }, { |