summaryrefslogtreecommitdiffstats
path: root/video/vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-28 21:56:45 +0200
committerwm4 <wm4@nowhere>2015-05-28 21:56:45 +0200
commitc4757ad17cf13941c74007cfeb1bc5cedfd05569 (patch)
tree88c55a13927a9f9b7569c384b51169f314eb7653 /video/vdpau.c
parent6f5a10542c276ad4fa87a2f449dc4173e10fc47d (diff)
downloadmpv-c4757ad17cf13941c74007cfeb1bc5cedfd05569.tar.bz2
mpv-c4757ad17cf13941c74007cfeb1bc5cedfd05569.tar.xz
vo_opengl: avoid broken shader if hwdec fails to provide textures
If gl_hwdec_driver.map_image fails, all textures will be set to 0. This in turn makes pass_prepare_src_tex() skip generation of the texture uniforms, which leads to a shader compilation error, as e.g. texture0 is not defined but expected to exist and accessed. Set the textures to an invalid non-0 ID instead. OpenGL can deal with it.
Diffstat (limited to 'video/vdpau.c')
0 files changed, 0 insertions, 0 deletions