2.8 branch: Enhancement and bug fixes for OcclusionQueryNode. Revisions merged from trunk include: 10933 and 11127.

This commit is contained in:
Paul MARTZ
2010-03-15 19:34:42 +00:00
parent ae10c4ef89
commit 18b8d05d1f
3 changed files with 39 additions and 18 deletions

View File

@@ -1473,7 +1473,7 @@ void CullVisitor::apply(osg::OcclusionQueryNode& node)
osg::Camera* camera = getCurrentCamera();
// If previous query indicates visible, then traverse as usual.
if (node.getPassed( camera, getDistanceToEyePoint( node.getBound()._center, false ) ))
if (node.getPassed( camera, *this ))
handle_cull_callbacks_and_traverse(node);
// Traverse the query subtree if OcclusionQueryNode needs to issue another query.