Fixed #2481 Re-write Canvas Mode of RenderTexture to adapt WebGL interface

Re-write Canvas Mode of RenderTexture to adapt WebGL interface