Fixed #5832: fixed the bug of cc.RenderTexture that it doesn't run some actions on Canvas mode.

fixed the bug of cc.RenderTexture that it doesn't run some actions on Canvas mode.