Fixed some problem with the orientation system.
Fixed some problems with the render to texture system when the orientation is horizontal.