Introduced a QueryGeometry::getQueryResult(const osg::Camera*) method as a more informative replacedment for QueryGeometry::getNumPixels().
This commit is contained in:
parent
605821e655
commit
19cf8b46c3
@ -544,8 +544,7 @@ bool OcclusionQueryNode::getPassed( const Camera* camera, NodeVisitor& nv )
|
|||||||
{
|
{
|
||||||
// The query hasn't finished yet and the result still
|
// The query hasn't finished yet and the result still
|
||||||
// isn't available, return true to traverse the subgraphs.
|
// isn't available, return true to traverse the subgraphs.
|
||||||
_passed = true;
|
return true;
|
||||||
return _passed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_passed = ( result.numPixels > _visThreshold );
|
_passed = ( result.numPixels > _visThreshold );
|
||||||
|
Loading…
Reference in New Issue
Block a user