summarylogtreecommitdiffstats
path: root/ccShader_PositionTextureColor.frag.patch
blob: bcb1250e2a4779b3c02e6c7f4eb413f7b7a5c77f (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_PositionTextureColor.frag	2016-12-29 13:42:38.000000000 -0400
+++ /tmp/ccShader_PositionTextureColor.frag	2017-01-04 15:03:04.783267993 -0400
@@ -23,10 +23,10 @@
  * THE SOFTWARE.
  */
 
-const char* ccPositionTextureColor_frag = R"(
-#ifdef GL_ES
+const char* ccPositionTextureColor_frag = STRINGIFY(
+\n#ifdef GL_ES\n
 precision lowp float;
-#endif
+\n#endif\n
 
 varying vec4 v_fragmentColor;
 varying vec2 v_texCoord;
@@ -35,4 +35,4 @@
 {
     gl_FragColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord);
 }
-)";
+);