1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 05:22:23 +00:00

vo_gpu: fix broken 10 bit via integer textures playback

The check_gl_features(p) call here checks whether dumb mode can be used.
It uses the field use_integer_conversion, which is set _after_ the call
in the same function. Move check_gl_features() to the end of the
function, when use_integer_conversion is finally set.

Fixes that it tried to use bilinear filtering with integer textures. The
bug disabled the code that is supposed to convert it to non-integer
textures.
This commit is contained in:
wm4 2018-01-17 11:09:03 +01:00 committed by Kevin Mitchell
parent 0192eeb09c
commit 07753bbb4a

View File

@ -862,9 +862,6 @@ static void init_video(struct gl_video *p)
}
p->color_swizzle[4] = '\0';
// Format-dependent checks.
check_gl_features(p);
mp_image_params_guess_csp(&p->image_params);
av_lfg_init(&p->lfg, 1);
@ -909,6 +906,9 @@ static void init_video(struct gl_video *p)
debug_check_gl(p, "after video texture creation");
// Format-dependent checks.
check_gl_features(p);
gl_video_setup_hooks(p);
}