Opengl Error 0x0502 by restoreRenderState 182 Iphone6

hey guys, i got a glsl error in iphone6 ,
i try to use a shader program in a sprite, In addition iphone6 good run in other models.
here is my shader code:
vsh:
attribute vec4 a_position;
attribute vec2 a_texCoord;
attribute vec4 a_color;

varying vec4 v_fragmentColor;
varying vec2 v_texCoord;

void main()
{
gl_Position = CC_PMatrix * a_position;
v_fragmentColor = a_color;
v_texCoord = a_texCoord;
}
fsh:

varying vec2 v_texCoord;
varying vec4 v_fragmentColor;

uniform vec2 pos;
uniform vec2 resolution;
uniform float customtime;

void main(void)
{
vec4 v_orColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord);
if(v_orColor.w <= 0.0){
gl_FragColor = v_orColor;
return;
}
vec2 p = vec2(gl_FragCoord.x-pos.x, gl_FragCoord.y-pos.y);
float extraH = floor(resolution.y/3.0);
float pecentTim = customtime/0.16;
float maxRow = floor(resolution.y/extraH);
float curRow = maxRow-floor(p.y/extraH);
bool isShow = false;
if( (curRowresolution.x + (mod(curRow,2.0) == 1.0? p.x:resolution.x-p.x))/(maxRowresolution.x) < pecentTim ){
isShow = true;
}
gl_FragColor = vec4(
isShow ? 0.12:0.0,
isShow ? 0.12:0.0,
isShow ? 0.12:0.0,
isShow ? 0.54:0.0);
}