summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-27 21:07:57 +0100
committerwm4 <wm4@nowhere>2016-01-27 21:07:57 +0100
commitf8bb24184bffc75582a11ca536446b74c5978ffa (patch)
tree53eed9c97a4f09b7cb79351d0870c0acc2ae607e
parent34bead485987b416685e73ca918610fff75d618d (diff)
downloadmpv-f8bb24184bffc75582a11ca536446b74c5978ffa.tar.bz2
mpv-f8bb24184bffc75582a11ca536446b74c5978ffa.tar.xz
vo_opengl: add precision qualifier to usampler2D on ANGLE
GLES requires this. Some more common sampler types have default precisions, but not usampler2D. Newer ANGLE builds verify this more strictly than older builds, so this wasn't caught before. Fixes #2761.
-rw-r--r--video/out/opengl/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c
index 588b6cddf8..fd27aac3d0 100644
--- a/video/out/opengl/utils.c
+++ b/video/out/opengl/utils.c
@@ -675,7 +675,7 @@ void gl_sc_uniform_sampler_ui(struct gl_shader_cache *sc, char *name, int unit)
struct sc_uniform *u = find_uniform(sc, name);
u->type = UT_i;
u->size = 1;
- u->glsl_type = "usampler2D";
+ u->glsl_type = sc->gl->es ? "highp usampler2D" : "usampler2D";
u->v.i[0] = unit;
}