Changed the popProjectionMatrix so that it didn't allow modification on the near

and far values when clamping the projection matrix.
This commit is contained in:
Robert Osfield
2004-08-05 12:47:55 +00:00
parent 53dc96bb50
commit 66397b3962

View File

@@ -211,7 +211,10 @@ void CullVisitor::popProjectionMatrix()
// so it doesn't cull them out.
osg::Matrix& projection = *_projectionStack.back();
clampProjectionMatrix(projection, _computed_znear, _computed_zfar);
double tmp_znear = _computed_znear;
double tmp_zfar = _computed_zfar;
clampProjectionMatrix(projection, tmp_znear, tmp_zfar);
}
else
{