Added support for CullVisitor to contain a osg::State. This used when

cull Callbacks require the contextID for  doing operations on texture
objects, for example.  Modified CullVisitor SceneView and Drawable
This commit is contained in:
Don BURNS
2002-07-02 06:22:28 +00:00
parent 0443d4cffa
commit d2aa4270ce
4 changed files with 10 additions and 2 deletions

View File

@@ -369,6 +369,8 @@ void SceneView::cullStage(osg::Matrix* projection,osg::Matrix* modelview,osgUtil
cullVisitor->setRenderGraph(rendergraph);
cullVisitor->setRenderStage(renderStage);
cullVisitor->setState( _state.get() );
renderStage->reset();
// comment out reset of rendergraph since clean is more efficient.