summarylogtreecommitdiffstats
path: root/ccShader_3D_ColorTex.frag.patch
blob: 77947cb7c2bfe016f7837bc38582dfcd9b4d74d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- /opt/cocos2d-x/cocos/renderer/ccShader_3D_ColorTex.frag	2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_3D_ColorTex.frag	2017-04-21 06:42:23.848478727 -0400
@@ -1,15 +1,15 @@
 
-const char* cc3D_ColorTex_frag = R"(
+const char* cc3D_ColorTex_frag = STRINGIFY(
 
-#ifdef GL_ES
+\n#ifdef GL_ES\n
 varying mediump vec2 TextureCoordOut;
-#else
+\n#else\n
 varying vec2 TextureCoordOut;
-#endif
+\n#endif\n
 uniform vec4 u_color;
 
 void main(void)
 {
     gl_FragColor = texture2D(CC_Texture0, TextureCoordOut) * u_color;
 }
-)";
+);