Merge pull request #613 from ZappoMan/bug_fixes

fixed FOV preference to work with view frustum code properly
This commit is contained in:
Stephen Birarda 2013-07-02 17:07:19 -07:00
commit 58ca268b34

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();