From 0cf17f56583ec420efbb7d4745ef72ff572f2b48 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Mon, 16 Dec 2013 14:36:11 +0800 Subject: [PATCH] label : fix some error on android when the GLSL versions is 1.0 --- cocos/2d/ccShader_Label_frag_outline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/2d/ccShader_Label_frag_outline.h b/cocos/2d/ccShader_Label_frag_outline.h index 821b19e33d..672715fc18 100644 --- a/cocos/2d/ccShader_Label_frag_outline.h +++ b/cocos/2d/ccShader_Label_frag_outline.h @@ -12,9 +12,9 @@ void main() \n\ { \n\ float dist = texture2D(CC_Texture0, v_texCoord).a; \n\ //todo:Implementation 'fwidth' for glsl 1.0 \n\ - float width = fwidth(dist); \n\ + //float width = fwidth(dist); \n\ //assign width for constant will lead to a little bit fuzzy,it's temporary measure.\n\ - //float width = 0.04; \n\ + float width = 0.04; \n\ float alpha = smoothstep(0.5-width, 0.5+width, dist); \n\ //outline \n\ float mu = smoothstep(0.545-width, 0.545+width, dist); \n\