I’m testing my game on Mac (based the project on TestCpp) but I’m having a strange error.
I start the game and switch to full screen. When I click the play button on the main menu, the texture to be used doesn’t load.
CCTexture2D *tex = CCTextureCache::sharedTextureCache()->addImage("core.pvr.ccz");
CCSpriteBatchNode *batchNode = CCSpriteBatchNode::createWithTexture(tex);
tex var appears to be null. The createWithTexture() method gives me EXC_BAD_ACCESS error on CCTexture2D::hasPremultipliedAlpha();
If i do not switch to full screen, it works perfectly. Although the error persists if I switch and returns to window.
I’m using cocos2d-2.1beta3-x-2.1.0.