cocos2d / cocos2d-x-for-xna

port cocos2d-x into c# based on XNA
124 stars 49 forks source link

resume game lost text on wp8 #24

Closed MatriQ closed 11 years ago

MatriQ commented 11 years ago

I use cocos2d-x-for-xna on wp8 by monogame,but there is a problem:it allways lost text when game resume,i checked the vertex data,it have not any problem.

totallyeviljake commented 11 years ago

are you using spritefont or BMFont? Also, are you using the latest develop branch from monogame?

totallyeviljake commented 11 years ago

Also, there is code for Android in the source that handles this, so maybe that code needs an "|| WINDOWS8" option too - you have to "dirty" the labels to make them regenerate the textures. spritefont labels need to be regenerated when the textures are disposed during the background/foreground lifecycle event.

MatriQ commented 11 years ago

thank you ,i will try to regenerate the font textures