Permalink
Browse files

Applied unquie CullVisitor::Identifier rather than reusing the cloned…

… one.
  • Loading branch information...
1 parent dd2289c commit 6d5c0dfd91a8fa658de100c060a70d14f61227bf @osg-training-guest osg-training-guest committed Dec 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/osgViewer/Renderer.cpp
@@ -430,9 +430,10 @@ Renderer::Renderer(osg::Camera* camera):
{
// assign CullVisitor::Identifier so that the double buffering of SceneView doesn't interfer
// with code that requires a consistent knowledge and which effective cull traversal to taking place
- osg::ref_ptr<osgUtil::CullVisitor::Identifier> leftEyeIdentifier = _sceneView[0]->getCullVisitor()->getIdentifier();
+ osg::ref_ptr<osgUtil::CullVisitor::Identifier> leftEyeIdentifier = new osgUtil::CullVisitor::Identifier();
osg::ref_ptr<osgUtil::CullVisitor::Identifier> rightEyeIdentifier = new osgUtil::CullVisitor::Identifier();
+ _sceneView[0]->getCullVisitor()->setIdentifier(leftEyeIdentifier.get());
_sceneView[0]->setCullVisitorLeft(_sceneView[0]->getCullVisitor()->clone());
_sceneView[0]->getCullVisitorLeft()->setIdentifier(leftEyeIdentifier.get());
_sceneView[0]->setCullVisitorRight(_sceneView[0]->getCullVisitor()->clone());

0 comments on commit 6d5c0df

Please sign in to comment.