From 590f8ad33c3f41557a726ea469100d7409a3a36c Mon Sep 17 00:00:00 2001 From: gohai Date: Tue, 17 Apr 2018 18:24:34 -0700 Subject: [PATCH] ARM Mali: Specify precision for _fragColor Fixes: S0032: no default precision defined for variable '_fragColor' --- core/src/processing/opengl/PGL.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index b66b6631d..4818cd052 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -1935,7 +1935,11 @@ public abstract class PGL { fragSrc = preprocessShaderSource(fragSrc0, search, replace, offset); fragSrc[0] = "#version " + version + versionSuffix; - fragSrc[1] = "out vec4 _fragColor;"; + if (" es".equals(versionSuffix)) { + fragSrc[1] = "out mediump vec4 _fragColor;"; + } else { + fragSrc[1] = "out vec4 _fragColor;"; + } } return fragSrc;