I have a Fragment shader that contains:
[...] float c = texture2D(tex, tc).a; float alpha = mix(0.0f, 1.0f, c); gl_FragColor = vec4(1, 1, 1, alpha) * color;
This works fine on my desktop and Nexus 5. However I get an exception while running on a Wiko mobile:
0:22: L0001: Expected token ')', found 'identifier'
Line 22 is the line containing the mix function.
What I'm doing wrong?