diff options
author | wm4 <wm4@nowhere> | 2016-01-27 21:07:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-27 21:07:57 +0100 |
commit | f8bb24184bffc75582a11ca536446b74c5978ffa (patch) | |
tree | 53eed9c97a4f09b7cb79351d0870c0acc2ae607e /video/out/opengl/utils.c | |
parent | 34bead485987b416685e73ca918610fff75d618d (diff) | |
download | mpv-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.
Diffstat (limited to 'video/out/opengl/utils.c')
-rw-r--r-- | video/out/opengl/utils.c | 2 |
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; } |