Changing scale of WebCamTexture

I’m trying to invert the scale of a WebCamTexture whenever a device changes orientation so that the captured image has always the right orientation. I’m facing a problem where whenever I change the scale the texture is stretched.

It’s exactly the same problem related in this question: GUI and NPOT textures blur when tiling is negative? - Unity Answers

However changing the wrap mode didn’t solve it for me.

Thanks,

Just found out that when scaling NPOT (non power of two) textures it is necessary to add change the offset value.

In my case where the scale values were -1, the offset had to be set to 1. No offset changes are necessary if using POT textures.

Thanks,