From 0db9fc45ddb9b61a18c255fa0819568ab465794a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 14 Dec 2006 16:13:27 +0000 Subject: [PATCH] From Orhun Birsoy, "In SimpleViewer::frameUpdateTraversal function, orthographicCamera calculation has some typos. It should read bool orthographicCamera = (pm(0,3)==0.0) && (pm(1,3)==0.0) && (pm(2,3)==0.0) && (pm(3,3)== 1.0); " --- src/osgViewer/SimpleViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/SimpleViewer.cpp b/src/osgViewer/SimpleViewer.cpp index 1449bd435..129c62612 100644 --- a/src/osgViewer/SimpleViewer.cpp +++ b/src/osgViewer/SimpleViewer.cpp @@ -207,7 +207,7 @@ void SimpleViewer::frameUpdateTraversal() if (previousAspectRatio != newAspectRatio) { osg::Matrixd& pm = _sceneView->getProjectionMatrix(); - bool orthographicCamera = (pm(0,3)==0.0) && (pm(0,3)==0.0) && (pm(0,3)==0.0) && (pm(0,3)==1.0); + bool orthographicCamera = (pm(0,3)==0.0) && (pm(1,3)==0.0) && (pm(2,3)==0.0) && (pm(3,3)==1.0); if (orthographicCamera) { double left, right, bottom, top, zNear, zFar;