Old Spamsung devices running Gingerbread cannot handle dangerous characters like backslash '\' in their OpenGL shader parsers

This commit is contained in:
Aaron Culliney 2015-04-07 23:17:13 -07:00
parent bbf10565a8
commit afc8c8bb24

View File

@ -43,11 +43,8 @@ uniform sampler2D buttonTexture;
#define OUTPUT_RED() \
fragColor = vec4(1.0, 0.0, 0.0, 1.0)
#else
#define OUTPUT_TEXTURE(TEX) \
vec4 tex = texture2D(TEX, varTexcoord.st, 0.0); \
gl_FragColor = vec4(tex.r, tex.g, tex.b, tex.a*aValue)
#define OUTPUT_RED() \
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0)
#define OUTPUT_TEXTURE(TEX) vec4 tex = texture2D(TEX, varTexcoord.st, 0.0); gl_FragColor = vec4(tex.r, tex.g, tex.b, tex.a*aValue)
#define OUTPUT_RED() gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0)
#endif
void main(void)