1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 06:53:52 +00:00

Always use ref_ptr for query geometry

This commit is contained in:
Alexander Olofsson 2020-02-21 07:51:50 +01:00
parent 5de1e0fb0c
commit 776c0857fa
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

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