mirror of https://github.com/mpv-player/mpv
vo_opengl: correctly disable interpolation if tscale can't be used
It'll fail with an assertion in the interpolation code otherwise.
This commit is contained in:
parent
c160e5f31d
commit
e68b510a94
|
@ -2727,6 +2727,8 @@ static void check_gl_features(struct gl_video *p)
|
||||||
if (reason) {
|
if (reason) {
|
||||||
p->opts.scaler[n].kernel.name = "bilinear";
|
p->opts.scaler[n].kernel.name = "bilinear";
|
||||||
MP_WARN(p, "Disabling scaler #%d %s.\n", n, reason);
|
MP_WARN(p, "Disabling scaler #%d %s.\n", n, reason);
|
||||||
|
if (n == SCALER_TSCALE)
|
||||||
|
p->opts.interpolation = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue