From 776c0857fabb4434bc9f29f9cb1dae8b10cb3f88 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Fri, 21 Feb 2020 07:51:50 +0100 Subject: [PATCH] Always use ref_ptr for query geometry --- apps/openmw/mwrender/sky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/sky.cpp b/apps/openmw/mwrender/sky.cpp index 84d107815..10fc630bd 100644 --- a/apps/openmw/mwrender/sky.cpp +++ b/apps/openmw/mwrender/sky.cpp @@ -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 queryGeom = new osg::QueryGeometry(oqn->getName()); #else - auto* queryGeom = oqn->getQueryGeometry(); + osg::ref_ptr 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,