blob: a229d60904582d3e36c51bdd50ea7c549d4b9536 (
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
|
--- /opt/cocos2d-x/cocos/renderer/ccShader_PositionColor.vert 2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_PositionColor.vert 2017-04-21 06:42:24.365148604 -0400
@@ -23,20 +23,20 @@
* THE SOFTWARE.
*/
-const char* ccPositionColor_vert = R"(
+const char* ccPositionColor_vert = STRINGIFY(
attribute vec4 a_position;
attribute vec4 a_color;
-#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()
{
gl_Position = CC_MVPMatrix * a_position;
v_fragmentColor = a_color;
}
-)";
+);
|