summarylogtreecommitdiffstats
path: root/ccShader_CameraClear.vert.patch
blob: 01ebec8aecc9628859485081da1d01c20c13ed22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- /opt/cocos2d-x/cocos/renderer/ccShader_CameraClear.vert	2016-12-29 13:42:38.000000000 -0400
+++ /tmp/ccShader_CameraClear.vert	2017-01-04 15:03:03.856707806 -0400
@@ -1,18 +1,18 @@
 
-const char* ccCameraClearVert = R"(
+const char* ccCameraClearVert = STRINGIFY(
 
 uniform float depth;
 
 attribute vec4 a_position;
 attribute vec2 a_texCoord;
 attribute vec3 a_color;
-#ifdef GL_ES
+\n#ifdef GL_ES\n
 varying mediump vec2 v_texCoord;
 varying mediump vec3 v_color;
-#else
+\n#else\n
 varying vec2 v_texCoord;
 varying vec3 v_color;
-#endif
+\n#endif\n
 void main()
 {
     gl_Position = a_position;
@@ -21,4 +21,4 @@
     v_texCoord = a_texCoord;
     v_color = a_color;
 }
-)";
+);