From b6838c703e0b38277ebaff8189817f987bb1ece6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 13 Nov 2002 10:23:55 +0000 Subject: [PATCH] Small improvement to the computation of the pixel size vector. --- src/osg/CullStack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/CullStack.cpp b/src/osg/CullStack.cpp index 0908968db..08c4791c1 100644 --- a/src/osg/CullStack.cpp +++ b/src/osg/CullStack.cpp @@ -74,8 +74,8 @@ void CullStack::pushCullingSet() M(2,0)*P00 + M(2,2)*P20_00); // scaling for vertical pixels - float P10 = P(1,1)*W.width()*0.5f; - float P20_10 = P(2,1)*W.width()*0.5f + P(2,3)*W.width()*0.5f; + float P10 = P(1,1)*W.height()*0.5f; + float P20_10 = P(2,1)*W.height()*0.5f + P(2,3)*W.height()*0.5f; osg::Vec3 scale_10(M(0,1)*P10 + M(0,2)*P20_10, M(1,1)*P10 + M(1,2)*P20_10, M(2,1)*P10 + M(2,2)*P20_10);