I had made a screenshot by CCRender Texture, the details as below:
CCRenderTexture screenTexture = CCRenderTexture::renderTextureWithWidthAndHeight;
screenTexture~~>beginWithClear;
this~~>visit;
screenTexture->end;
hen the texture of this screenshot as the background of another scene, it will turn to this scene, the detais as below:
CCSpritegameOverSprite =CCSprite::spriteWithTexture(screenTexture->getSprite()>getTexture);>addChild(gameOverSprite,–1,9);
GameHelp *gameOverScene = GameHelp::node;
gameOverScene
CCDirector::sharedDirector()->pushScene(gameOverScene);
As far as now and everything goes well. But when it is under the android circumstance, if you press the home button( actually the game is not over)and back to game again,
there will be screen mess or the game will be crash. But everything operating normally under the IOS platform.
pls help!