blob: 0f0253ef1060d9d5caaced6a18e62b4d65c4967c (
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
|
--- /opt/cocos2d-x/cocos/renderer/ccShader_PositionTexture.vert 2017-03-22 15:13:34.000000000 -0400
+++ /tmp/ccShader_PositionTexture.vert 2017-04-21 06:42:23.821811895 -0400
@@ -23,20 +23,20 @@
* THE SOFTWARE.
*/
-const char* ccPositionTexture_vert = R"(
+const char* ccPositionTexture_vert = STRINGIFY(
attribute vec4 a_position;
attribute vec2 a_texCoord;
-#ifdef GL_ES
+\n#ifdef GL_ES\n
varying mediump vec2 v_texCoord;
-#else
+\n#else\n
varying vec2 v_texCoord;
-#endif
+\n#endif\n
void main()
{
gl_Position = CC_MVPMatrix * a_position;
v_texCoord = a_texCoord;
}
-)";
\ No newline at end of file
+);
\ No newline at end of file
|