summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gpu/shader_cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/gpu/shader_cache.c b/video/out/gpu/shader_cache.c
index c2b701382c..cb88c35ae6 100644
--- a/video/out/gpu/shader_cache.c
+++ b/video/out/gpu/shader_cache.c
@@ -339,7 +339,7 @@ void gl_sc_uniform_image2D_wo(struct gl_shader_cache *sc, const char *name,
struct sc_uniform *u = find_uniform(sc, name);
u->input.type = RA_VARTYPE_IMG_W;
- u->glsl_type = "writeonly image2D";
+ u->glsl_type = sc->ra->glsl_es ? "writeonly highp image2D" : "writeonly image2D";
u->input.binding = gl_sc_next_binding(sc, u->input.type);
u->v.tex = tex;
}
@@ -783,10 +783,8 @@ static void gl_sc_generate(struct gl_shader_cache *sc,
if (glsl_es) {
ADD(header, "#ifdef GL_FRAGMENT_PRECISION_HIGH\n");
ADD(header, "precision highp float;\n");
- ADD(header, "precision highp image2D;\n");
ADD(header, "#else\n");
ADD(header, "precision mediump float;\n");
- ADD(header, "precision mediump image2D;\n");
ADD(header, "#endif\n");
ADD(header, "precision mediump sampler2D;\n");