Always use ref_ptr for query geometry

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

@ -563,7 +563,7 @@ private:
// With OSG 3.6.5, the method of providing user defined query geometry has been completely replaced
osg::ref_ptr<osg::QueryGeometry> queryGeom = new osg::QueryGeometry(oqn->getName());
#else
auto* queryGeom = oqn->getQueryGeometry();
osg::ref_ptr<osg::QueryGeometry> queryGeom = oqn->getQueryGeometry();
#endif
// Make it fast! A DYNAMIC query geometry means we can't break frame until the flare is rendered (which is rendered after all the other geometry,

Loading…
Cancel
Save