summaryrefslogtreecommitdiffstats
path: root/video/out/opengl
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-12 19:34:02 +0200
committerwm4 <wm4@nowhere>2016-05-12 21:22:28 +0200
commite68b510a942f033c629856a36df341e05aa44e50 (patch)
tree97967f03832f447b1208505fe5e1df0c50ef3eb0 /video/out/opengl
parentc160e5f31d6253628c4f1eea9d650f816158232d (diff)
downloadmpv-e68b510a942f033c629856a36df341e05aa44e50.tar.bz2
mpv-e68b510a942f033c629856a36df341e05aa44e50.tar.xz
vo_opengl: correctly disable interpolation if tscale can't be used
It'll fail with an assertion in the interpolation code otherwise.
Diffstat (limited to 'video/out/opengl')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 8252c55a63..4aef3280be 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -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;
}
}
}