using pointer instead of Director::getInstance() in RenderTexture