Made the local storage of a StateAttribute* be a ref_ptr<>
This commit is contained in:
@@ -40,7 +40,7 @@ class OSGUTIL_EXPORT RenderStageLighting : public osg::Object
|
||||
|
||||
virtual void reset();
|
||||
|
||||
typedef std::pair< const osg::StateAttribute*, osg::ref_ptr<osg::RefMatrix> > AttrMatrixPair;
|
||||
typedef std::pair< osg::ref_ptr<const osg::StateAttribute> , osg::ref_ptr<osg::RefMatrix> > AttrMatrixPair;
|
||||
typedef std::vector< AttrMatrixPair > AttrMatrixList;
|
||||
typedef std::map< unsigned int, AttrMatrixList > TexUnitAttrMatrixListMap;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ void RenderStageLighting::draw(osg::State& state,RenderLeaf*& previous)
|
||||
litr->first->apply(state);
|
||||
|
||||
// tell state about.
|
||||
state.haveAppliedAttribute(litr->first);
|
||||
state.haveAppliedAttribute(litr->first.get());
|
||||
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ void RenderStageLighting::draw(osg::State& state,RenderLeaf*& previous)
|
||||
litr->first->apply(state);
|
||||
|
||||
// tell state about.
|
||||
state.haveAppliedTextureAttribute(titr->first, litr->first);
|
||||
state.haveAppliedTextureAttribute(titr->first, litr->first.get());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user