blob: b03e394cddb394390398b588f0fd2b7bc5be210f (
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_PositionTextureColor_noMVP.vert 2016-12-29 13:42:38.000000000 -0400
+++ /tmp/ccShader_PositionTextureColor_noMVP.vert 2017-01-04 15:03:04.983245021 -0400
@@ -23,18 +23,18 @@
* THE SOFTWARE.
*/
-const char* ccPositionTextureColor_noMVP_vert = R"(
+const char* ccPositionTextureColor_noMVP_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()
{
@@ -42,4 +42,4 @@
v_fragmentColor = a_color;
v_texCoord = a_texCoord;
}
-)";
+);
|