From Paul Martz, "Attached is a modification to OcclusionQueryNode. The copy constructor was failing to initialize all member variables. This change resolves the issue. Thanks to Doug McCorkle for testing and finding the bug."

This commit is contained in:
Robert Osfield 2008-02-18 13:44:30 +00:00
parent 45c6bbb577
commit a87c98857c

View File

@ -521,9 +521,12 @@ OcclusionQueryNode::~OcclusionQueryNode()
}
OcclusionQueryNode::OcclusionQueryNode( const OcclusionQueryNode& oqn, const osg::CopyOp& copyop )
: Group( oqn, copyop )
: Group( oqn, copyop ),
_passed( false )
{
_enabled = oqn._enabled;
_visThreshold = oqn._visThreshold;
_queryFrameCount = oqn._queryFrameCount;
_debugBB = oqn._debugBB;
// Regardless of shallow or deep, create unique support nodes.