CCClippingNode doesn't work on "SimpleGame"

Hi

I tried to use CCClippingNode in SimpleGame sample, but it doesn’t work. It works only in testcpp sample.

I implement my app based on SimpleGame, so CCClippingNode doesn’t work with it also.

I use cocos2d-x 2.1.4 with iPhone simulator and device

here is my code, and screenshot

CCLayer* maskNode = CCLayer::create();
maskNode~~>setPosition);
this~~>addChild(maskNode);
{
CCClippingNode clipper = CCClippingNode::create;
// clipper~~>setTag;
clipper~~>setContentSize );
clipper~~>setAnchorPoint );
// clipper~~>setPosition.width / 2-250, this~~>getContentSize.height / 2-220) );
//clipper~~>runAction));
maskNode~~>addChild;
CCDrawNode *stencil = CCDrawNode::create;
CCPoint rectangle[4];
rectangle[0] = ccp;
rectangle[1] = ccp.width, 0);
rectangle[2] = ccp.width, clipper~~>getContentSize.height);
rectangle[3] = ccp.height);
ccColor4F white = ;
stencil~~>drawPolygon;
clipper~~>setStencil;
CCSprite
content = CCSprite::create(“Default.png”);
// content~~>setTag;
content~~>setAnchorPoint( ccp(0.5, 0.5) );
content~~>setPosition.width / 2, clipper~~>getContentSize().height / 2) );
clipper->addChild(content);
}


Screen Shot 2013-07-23 at 11.34.19 AM.png (150.9 KB)