3 #include <simgear/structure/OSGUtils.hxx>
5 #include <osg/StateSet>
10 Pass::Pass(const Pass& rhs, const osg::CopyOp& copyop) :
11 _stateSet(clone_ref(rhs._stateSet, copyop))
15 void Pass::resizeGLObjectBuffers(unsigned int maxSize)
17 if (_stateSet.valid())
18 _stateSet->resizeGLObjectBuffers(maxSize);
21 void Pass::releaseGLObjects(osg::State* state) const
23 if (_stateSet.valid())
24 _stateSet->releaseGLObjects(state);