1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Use queryGeom for all query geometry accesses

This commit is contained in:
Alexander Olofsson 2020-02-15 03:12:36 +01:00
parent 7db58a893a
commit 5de1e0fb0c
No known key found for this signature in database
GPG Key ID: D439C9470CB04C73

View File

@ -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.