mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 15:29:56 +00:00
vo_opengl: add scaler name to the 'Disabling scaler' message
Print to the user the name of the scaler that gets disabled rather than just printing its number.
This commit is contained in:
parent
6f9973618c
commit
9d0af06811
@ -3186,9 +3186,10 @@ static void check_gl_features(struct gl_video *p)
|
||||
if (!have_mglsl)
|
||||
reason = "(GLSL version too old)";
|
||||
if (reason) {
|
||||
MP_WARN(p, "Disabling scaler #%d %s %s.\n", n,
|
||||
p->opts.scaler[n].kernel.name, reason);
|
||||
// p->opts is a copy of p->opts_alloc => we can just mess with it.
|
||||
p->opts.scaler[n].kernel.name = "bilinear";
|
||||
MP_WARN(p, "Disabling scaler #%d %s.\n", n, reason);
|
||||
if (n == SCALER_TSCALE)
|
||||
p->opts.interpolation = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user