Rotate UVs and fix crash in softgpu

This rotation logic is just copied from GLES.  I'm sure it's right and it fixes some glitches, but I don't really understand why it happens...

-[Unknown]