blob: ce1e86420a425d3905253099efa4f7f714ed1d64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- /opt/cocos2d-x/cocos/renderer/ccShader_ETC1AS_PositionTextureGray.frag 2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_ETC1AS_PositionTextureGray.frag 2017-04-21 06:42:23.725144629 -0400
@@ -23,10 +23,10 @@
* THE SOFTWARE.
*/
-const char* ccETC1ASPositionTextureGray_frag = R"(
-#ifdef GL_ES
+const char* ccETC1ASPositionTextureGray_frag = STRINGIFY(
+\n#ifdef GL_ES\n
precision mediump float;
-#endif
+\n#endif\n
varying vec4 v_fragmentColor;
varying vec2 v_texCoord;
@@ -42,4 +42,4 @@
gl_FragColor.rgb = vec3(0.2126*texColor.r + 0.7152*texColor.g + 0.0722*texColor.b);
gl_FragColor.a = texColor.a;
}
-)";
+);
|