summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-14 12:17:34 +0200
committerwm4 <wm4@nowhere>2017-08-14 12:17:39 +0200
commitcacc6db2a3a81415321ff7b80d9043757149b87d (patch)
treed6be2741193a81cab60c60dbd9f8c61c00d4ae6f /player/video.c
parentc6628a5fb618715910ac7cb6d247fc0c0650517b (diff)
downloadmpv-cacc6db2a3a81415321ff7b80d9043757149b87d.tar.bz2
mpv-cacc6db2a3a81415321ff7b80d9043757149b87d.tar.xz
vo_opengl: hwdec_vdpau: use correct source texture size
In commit c6fafbffaca1 we accidentally set the logical texture size to the cropped video size, which is not correct. This caused rendering artifacts in some cases. Use the video surfaces size instead. Since the current mp_image_params contains the cropped size only, wrapper texture creation has to be moved to the _map function. Move the same code for the mixer case (strictly speaking this is not needed, but seems more symmetric). (Also there is no need to clear gl_textures on uninit - leftover from the old hwdec mapper API. So we just drop that part.) Fixes #4760.
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions