1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 12:02:39 +00:00

vo_opengl: fix incorrect video rendering after vdpau preemption recovery

This could also trigger in certain other cases, whenever it falls back
to dumb mode.
This commit is contained in:
wm4 2016-09-07 18:48:24 +02:00
parent 4552ee286b
commit 622f9cf1aa

View File

@ -2373,6 +2373,7 @@ static void pass_render_frame(struct gl_video *p)
p->components = 0;
p->saved_tex_num = 0;
p->hook_fbo_num = 0;
p->use_linear = false;
if (p->image_params.rotate % 180 == 90)
MPSWAP(int, p->texture_w, p->texture_h);