fix bugs in renderView

mat2 should applied before y,z axis flipping
Merge pull request #1026 from Tonsty/master

fix bugs in renderView