Cocos2d-x v3.1 for WinPhone 8 auto change texture after resumed from background

Posted by Bình Nguyên on Game Development See other posts from Game Development or by Bình Nguyên
Published on 2014-06-05T06:50:20Z Indexed on 2014/06/05 9:44 UTC
Read the original article Hit count: 284

Filed under:

I have some sprites in my game (for Windows Phone 8). These are my steps to reproduce the problem:

  1. Open game
  2. Play (this is an optional step)
  3. Press Windows button to send game to background
  4. Press Back button to resume game

The problem is: After the game has resumed, some sprites exchange textures, some sprites go black (like there is no texture being bound).

I'm using cocos2dx version 3.1.1. Can someone help me to solve this problem?

© Game Development or respective owner

Related posts about cocos2d-x