1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

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.
This commit is contained in:
wm4 2016-01-27 21:07:57 +01:00
parent 34bead4859
commit f8bb24184b

View File

@ -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;
}