Skip to content
Permalink
Browse files

Added check aginst _enabled from the 3.6 branch

  • Loading branch information...
robertosfield committed Aug 22, 2019
1 parent f18dd05 commit af7d6478e66e424524e81fb9f78b520f8e095a3a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/osg/OcclusionQueryNode.cpp
@@ -556,7 +556,7 @@ bool OcclusionQueryNode::getPassed( const Camera* camera, NodeVisitor& nv )

void OcclusionQueryNode::traverseQuery( const Camera* camera, NodeVisitor& nv )
{
if (!_validQueryGeometry)
if (!_validQueryGeometry || ! _enabled)
return;

bool issueQuery;

0 comments on commit af7d647

Please sign in to comment.
You can’t perform that action at this time.