fixed detecting path in texture,cocos2s warnings were hidden