Skip to content

Commit

Permalink
ARM Mali: Specify precision for _fragColor
Browse files Browse the repository at this point in the history
Fixes:
S0032: no default precision defined for variable '_fragColor'
  • Loading branch information
gohai committed Apr 18, 2018
1 parent 24bb799 commit 590f8ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/processing/opengl/PGL.java
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,11 @@ protected static String[] preprocessFragmentSource(String[] fragSrc0,

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;
Expand Down

0 comments on commit 590f8ad

Please sign in to comment.