fixed FOV preference to work with view frustum code properly

This commit is contained in:
ZappoMan 2013-07-02 16:58:31 -07:00
parent e85f498ef3
commit af1de263a4

View file

@ -432,6 +432,9 @@ void Application::paintGL() {
void Application::resizeGL(int width, int height) {
float aspectRatio = ((float)width/(float)height); // based on screen resize
// reset the camera FOV to our preference...
_myCamera.setFieldOfView(_horizontalFieldOfView);
// get the lens details from the current camera
Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera;
float nearClip = camera.getNearClip();