blob: 285f03b058fbd4c24b32c460b3ebca72bb156932 (
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
33
34
35
36
37
38
39
40
41
42
43
44
|
--- /opt/cocos2d-x/cocos/renderer/ccShader_PositionColorLengthTexture.vert 2017-04-12 15:00:32.000000000 -0400
+++ /tmp/ccShader_PositionColorLengthTexture.vert 2017-04-21 06:42:24.495149411 -0400
@@ -19,13 +19,13 @@
* SOFTWARE.
*/
-const char* ccPositionColorLengthTexture_vert = R"(
+const char* ccPositionColorLengthTexture_vert = STRINGIFY(
-#ifdef GL_ES
+\n#ifdef GL_ES\n
precision lowp float;
-#endif
+\n#endif\n
-#ifdef GL_ES
+\n#ifdef GL_ES\n
attribute mediump vec4 a_position;
attribute mediump vec2 a_texcoord;
attribute mediump vec4 a_color;
@@ -33,7 +33,7 @@
varying mediump vec4 v_color;
varying mediump vec2 v_texcoord;
-#else
+\n#else\n
attribute vec4 a_position;
attribute vec2 a_texcoord;
@@ -42,7 +42,7 @@
varying vec4 v_color;
varying vec2 v_texcoord;
-#endif
+\n#endif\n
uniform float u_alpha;
@@ -53,4 +53,4 @@
gl_Position = CC_MVPMatrix * a_position;
}
-)";
+);
|