From f8bb24184bffc75582a11ca536446b74c5978ffa Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 27 Jan 2016 21:07:57 +0100 Subject: [PATCH] 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. --- video/out/opengl/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }