1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-04 14:11:53 +00:00

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.
This commit is contained in:
wm4 2017-01-30 09:34:10 +01:00
parent 954625c165
commit dccb752b5f

View File

@ -850,6 +850,7 @@ hwaccel_features = [
}, {
'name': '--cuda-hwaccel',
'desc': 'CUDA hwaccel',
'deps': [ 'gl' ],
'func': check_cc(fragment=load_fragment('cuda.c'),
use='libav'),
}, {