Changeset 3236

Show
Ignore:
Timestamp:
08/05/04 14:47:55 (10 years ago)
Author:
robert
Message:

Changed the popProjectionMatrix so that it didn't allow modification on the near
and far values when clamping the projection matrix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgUtil/CullVisitor.cpp

    r3214 r3236  
    212212        osg::Matrix& projection = *_projectionStack.back(); 
    213213         
    214         clampProjectionMatrix(projection, _computed_znear, _computed_zfar); 
     214        double tmp_znear = _computed_znear; 
     215        double tmp_zfar = _computed_zfar; 
     216         
     217        clampProjectionMatrix(projection, tmp_znear, tmp_zfar); 
    215218    } 
    216219    else