blob: f2a71f1b909703477b28772d7f54a953a0874e89 (
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_PositionColorTextureAsPointsize.vert 2016-12-29 13:42:38.000000000 -0400
+++ /tmp/ccShader_PositionColorTextureAsPointsize.vert 2017-01-04 15:03:04.499967205 -0400
@@ -22,18 +22,18 @@
* THE SOFTWARE.
*/
-const char* ccPositionColorTextureAsPointsize_vert = R"(
+const char* ccPositionColorTextureAsPointsize_vert = STRINGIFY(
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_texCoord;
-#ifdef GL_ES
+\n#ifdef GL_ES\n
varying lowp vec4 v_fragmentColor;
-#else
+\n#else\n
varying vec4 v_fragmentColor;
-#endif
+\n#endif\n
void main()
{
@@ -41,4 +41,4 @@
gl_PointSize = a_texCoord.x;
v_fragmentColor = a_color;
}
-)";
+);
|