From Farshid Lashkari and Robert Osfield, "a small change to the CullVisitor class, which will use cloneType() on the root render stage when creating children render stages. This allows us to pass a custom RenderStage object to the SceneView and have it used for all sub-stages."
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14872 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
820166b49d
commit
01e87939a4
@ -1565,7 +1565,7 @@ void CullVisitor::apply(osg::Camera& camera)
|
|||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*(camera.getDataChangeMutex()));
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*(camera.getDataChangeMutex()));
|
||||||
|
|
||||||
rtts = new osgUtil::RenderStage;
|
rtts = _rootRenderStage.valid() ? osg::cloneType(_rootRenderStage.get()) : new osgUtil::RenderStage;
|
||||||
rsCache->setRenderStage(this,rtts.get());
|
rsCache->setRenderStage(this,rtts.get());
|
||||||
|
|
||||||
rtts->setCamera(&camera);
|
rtts->setCamera(&camera);
|
||||||
|
Loading…
Reference in New Issue
Block a user