summarylogtreecommitdiffstats
path: root/ccShader_Label_outline.frag.patch
diff options
context:
space:
mode:
authorWilson E. Alvarez2017-01-04 16:44:08 -0400
committerWilson E. Alvarez2017-01-04 16:44:08 -0400
commit34329dcd851a1aa3054cc5211327c98b17ef07a0 (patch)
treee92e62356bb61c441261c11f2846538e5cbd712c /ccShader_Label_outline.frag.patch
parent5e1dc36bda2e1684829db29b7749503309549a24 (diff)
downloadaur-34329dcd851a1aa3054cc5211327c98b17ef07a0.tar.gz
cocos2d-x V3.14
Diffstat (limited to 'ccShader_Label_outline.frag.patch')
-rw-r--r--ccShader_Label_outline.frag.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/ccShader_Label_outline.frag.patch b/ccShader_Label_outline.frag.patch
new file mode 100644
index 000000000000..e846987d2713
--- /dev/null
+++ b/ccShader_Label_outline.frag.patch
@@ -0,0 +1,37 @@
+--- /opt/cocos2d-x/cocos/renderer/ccShader_Label_outline.frag 2016-12-29 13:42:38.000000000 -0400
++++ /tmp/ccShader_Label_outline.frag 2017-01-04 15:03:04.226665269 -0400
+@@ -1,10 +1,10 @@
+ /*
+ * LICENSE ???
+ */
+-const char* ccLabelOutline_frag = R"(
+-#ifdef GL_ES
++const char* ccLabelOutline_frag = STRINGIFY(
++\n#ifdef GL_ES\n
+ precision lowp float;
+-#endif
++\n#endif\n
+
+ varying vec4 v_fragmentColor;
+ varying vec2 v_texCoord;
+@@ -12,11 +12,11 @@
+ uniform vec4 u_effectColor;
+ uniform vec4 u_textColor;
+
+-#ifdef GL_ES
++\n#ifdef GL_ES\n
+ uniform lowp int u_effectType; // 0: None (Draw text), 1: Outline, 2: Shadow
+-#else
++\n#else\n
+ uniform int u_effectType;
+-#endif
++\n#endif\n
+
+ void main()
+ {
+@@ -45,4 +45,4 @@
+ gl_FragColor = v_fragmentColor * vec4(u_effectColor.rgb, u_effectColor.a * outlineAlpha);
+ }
+ }
+-)";
++);