OpenGL error 0x0502 in CCSprite draw

Hi, I am using the GPUImage[1] library in my game. I created a sample HelloWorld app and I am doing some image processing(using GPUImage) on a button press. The app starts normally, but as soon as the image processing is done the screen turns black and I get the following errors

OpenGL error 0x0502 in d:\dev\cocos2d-2.0-x-2.0.4\cocos2dx\sprite_nodes\ccsprite.cpp cocos2d::CCSprite::draw 616

That’s a GL_INVALID_OPERATION. The OpenGL code before the line 616 is

glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

Any ideas why I am getting this error?
[1][https://github.com/Dexterp37/GPUImage]

I have the same error!

same error.

Do you resolve?

Hi, in my case I saw that the opengl command that causes error is:

glVertexAttribPointer(kCCVertexAttrib_Position, 3, GL_FLOAT, GL_FALSE, kQuadSize, (void*) (offset + diff));

and the sprite is the stencil of a ClippingNode object.

This error happens only the first time ClippingNode draw itself.
Maybe missing an initialization.
However I have not noticed any malfunction despite this error

I saw a bug that could refer at this error, but I don’t know where I can find the patch for cocos 2.1.5
http://www.cocos2d-x.org/issues/2564

Someone could help me.
thanks
Don