summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-01 20:44:39 +0200
committerwm4 <wm4@nowhere>2015-10-01 20:44:39 +0200
commit4a072059630fe7d57a5fbff97d7400cc83cafe4c (patch)
treeb02c88909ea387b09598f76cd1f56b8a22a29a4d /video/out/opengl/video.c
parent7c5f41ff5f00a823f4c75b7d9799729a05f943c9 (diff)
downloadmpv-4a072059630fe7d57a5fbff97d7400cc83cafe4c.tar.bz2
mpv-4a072059630fe7d57a5fbff97d7400cc83cafe4c.tar.xz
vo_opengl: debanding requires GLSL 1.30
We have to disable it, or shader compilation will fail. Fixes #2362.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index d3d7e38afb..fb339992cc 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -2147,6 +2147,10 @@ static void check_gl_features(struct gl_video *p)
p->use_lut_3d = false;
MP_WARN(p, "Disabling color management (GLSL version too old).\n");
}
+ if (!have_mix && p->opts.deband) {
+ p->opts.deband = 0;
+ MP_WARN(p, "Disabling debanding (GLSL version too old).\n");
+ }
}
static void init_gl(struct gl_video *p)