How to change opacity for CCRenderTexture

I used

((CCRenderTexture *)node)->getSprite()->setOpacity(opacity);

to change the opacity,but it seems no effect.

I use cocos2dx 2.1.3