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:
wm4 2016-05-12 19:34:02 +02:00
parent c160e5f31d
commit e68b510a94
1 changed files with 2 additions and 0 deletions

View File

@ -2727,6 +2727,8 @@ static void check_gl_features(struct gl_video *p)
if (reason) {
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;
}
}
}