Cocos2d-x: Invalidate matrix cache at setVisible(false)