Hi,
I am having a problem with cocos2d-x not loading/refreshing a local image upon entering the scene for a second time but it works if i restart the app.
Basically I load Scene A which displays the screenshot correctly (one exists already otherwise there is a placeholder) and then i go into Scene B. Once finished in Scene B i take a screenshot and replace the original screenshot and return to Scene A, however when Scene A loads it displays the original screenshot and not the new screenshot that replaced it unless i restart the app then it loads the new screenshot.
i have tried to reload the texture in scene A using but this did not work
Director::getInstance()->getTextureCache()->reloadTexture(filepath->getCString());
i take a screenshot using
utils::captureScreen(CC_CALLBACK_2(MyLayer::afterCaptured, this),imageName->getCString());