Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… one.
  • Loading branch information...
commit 6d5c0dfd91a8fa658de100c060a70d14f61227bf 1 parent dd2289c
Robert OSFIELD authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/osgViewer/Renderer.cpp
View
3  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());
Please sign in to comment.
Something went wrong with that request. Please try again.