summarylogtreecommitdiffstats
path: root/ccShader_Label.vert.patch
blob: 2a1f5c5a36ca6a3f93d3288960eb6938b3eda587 (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
32
--- /opt/cocos2d-x/cocos/renderer/ccShader_Label.vert	2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_Label.vert	2017-04-21 06:42:24.271814691 -0400
@@ -23,19 +23,19 @@
  * THE SOFTWARE.
  */
 
-const char* ccLabel_vert = R"(
+const char* ccLabel_vert = STRINGIFY(
 
 attribute vec4 a_position;
 attribute vec2 a_texCoord;
 attribute vec4 a_color;
 
-#ifdef GL_ES
+\n#ifdef GL_ES\n
 varying lowp vec4 v_fragmentColor;
 varying mediump vec2 v_texCoord;
-#else
+\n#else\n
 varying vec4 v_fragmentColor;
 varying vec2 v_texCoord;
-#endif
+\n#endif\n
 
 void main()
 {
@@ -43,4 +43,4 @@
     v_fragmentColor = a_color;
     v_texCoord = a_texCoord;
 }
-)";
+);