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:
parent
7db58a893a
commit
5de1e0fb0c
@ -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…
x
Reference in New Issue
Block a user