fixed #2481 modify codes to adapt rewritten RenderTexture for Canvas Mode

Modify codes to adapt rewritten RenderTexture for Canvas Mode