mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00: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:
parent
34bead4859
commit
f8bb24184b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user