From d858ce2fe222e00e8a48f9043086c15ce611a513 Mon Sep 17 00:00:00 2001 From: minggo Date: Wed, 5 Dec 2012 17:15:47 +0800 Subject: [PATCH] some android devices can not compile this frag --- .../shaders/ccShader_PositionColorLengthTexture_frag.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cocos2dx/shaders/ccShader_PositionColorLengthTexture_frag.h b/cocos2dx/shaders/ccShader_PositionColorLengthTexture_frag.h index ab908d6eb9..803664a506 100644 --- a/cocos2dx/shaders/ccShader_PositionColorLengthTexture_frag.h +++ b/cocos2dx/shaders/ccShader_PositionColorLengthTexture_frag.h @@ -21,7 +21,7 @@ " \n\ #ifdef GL_ES \n\ -#extension GL_OES_standard_derivatives : enable \n\ +// #extension GL_OES_standard_derivatives : enable \n\ \n\ varying mediump vec4 v_color; \n\ varying mediump vec2 v_texcoord; \n\ @@ -32,10 +32,10 @@ varying vec2 v_texcoord; \n\ \n\ void main() \n\ { \n\ -#if defined GL_OES_standard_derivatives \n\ - gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n\ -#else \n\ +// #if defined GL_OES_standard_derivatives \n\ + // gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n\ +// #else \n\ gl_FragColor = v_color*step(0.0, 1.0 - length(v_texcoord)); \n\ -#endif \n\ +// #endif \n\ } \n\ ";