From b7bf94b4c6897191f2892b35ecfd1231924668be Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 2 Jul 2016 14:45:10 +0100 Subject: [PATCH] Added const --- include/osg/CullStack | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osg/CullStack b/include/osg/CullStack index c59ec9787..5e8714ee1 100644 --- a/include/osg/CullStack +++ b/include/osg/CullStack @@ -113,7 +113,7 @@ class OSG_EXPORT CullStack : public osg::CullSettings { return getCurrentCullingSet().isCulled(node.getBound()); } - else + else { getCurrentCullingSet().resetCullingMask(); return false; @@ -145,7 +145,7 @@ class OSG_EXPORT CullStack : public osg::CullSettings inline osg::Viewport* getViewport(); inline osg::RefMatrix* getModelViewMatrix(); inline osg::RefMatrix* getProjectionMatrix(); - inline osg::Matrix getWindowMatrix(); + inline osg::Matrix getWindowMatrix() const; inline const osg::RefMatrix* getMVPW(); inline const osg::Vec3& getReferenceViewPoint() const { return _referenceViewPoints.back(); } @@ -249,7 +249,7 @@ inline osg::RefMatrix* CullStack::getProjectionMatrix() } } -inline osg::Matrix CullStack::getWindowMatrix() +inline osg::Matrix CullStack::getWindowMatrix() const { if (!_viewportStack.empty()) {