Added more correct orientation/clipping for the openGL component.