Use queryGeom for all query geometry accesses

pull/558/head
Alexander Olofsson 5 years ago
parent 7db58a893a
commit 5de1e0fb0c
No known key found for this signature in database
GPG Key ID: D439C9470CB04C73

@ -577,7 +577,7 @@ private:
// circumvent this.
queryGeom->setVertexArray(mGeom->getVertexArray());
queryGeom->setTexCoordArray(0, mGeom->getTexCoordArray(0), osg::Array::BIND_PER_VERTEX);
queryGeom->removePrimitiveSet(0, oqn->getQueryGeometry()->getNumPrimitiveSets());
queryGeom->removePrimitiveSet(0, queryGeom->getNumPrimitiveSets());
queryGeom->addPrimitiveSet(mGeom->getPrimitiveSet(0));
// Hack to disable unwanted awful code inside OcclusionQueryNode::computeBound.

Loading…
Cancel
Save