Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCRenderTexture disappears after pressing the home button #57

Open
Trurl101 opened this issue Mar 17, 2012 · 1 comment
Open

CCRenderTexture disappears after pressing the home button #57

Trurl101 opened this issue Mar 17, 2012 · 1 comment

Comments

@Trurl101
Copy link

I create a CCRenderTexture (inTexture) and put this texture into a Sprite (cardSprite)

cardSprite = CCSprite.sprite(inTexture.getSprite().getTexture());

This works fine in the game. But when I press the home button and go back to the game the Texture has disappeared. If I use a normale Texture (for example the texture of another I sprite initalised with a png-Texture) then the Texture don't disappear.

So it seems that there is a bug in CCRendertexture that makes this texture disappear after resume.

@Trurl101
Copy link
Author

Instead of using multiple small CCRendertextures I use a big one now and it seems that this works better.

Warning: You use CCRenderTexture only after the opengl-Scene has been fully build (onenter), otherwise the app will crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant