From e10bbea7c0633d7920b75e09e637c8f8e7e4112f Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Sun, 11 Aug 2019 12:07:49 +0300 Subject: [PATCH] Revert 3.4-breaking 8b1ed6c --- apps/openmw/mwrender/sky.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/openmw/mwrender/sky.cpp b/apps/openmw/mwrender/sky.cpp index 443acc876d..a28a9d66e3 100644 --- a/apps/openmw/mwrender/sky.cpp +++ b/apps/openmw/mwrender/sky.cpp @@ -558,11 +558,6 @@ private: osg::ref_ptr oqn = new osg::OcclusionQueryNode; oqn->setQueriesEnabled(true); - //force validity of query geometry (3.6) - oqn->addChild(mGeom); - oqn->getBound(); - oqn->removeChildren(0, 1); - // 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, // so that would be pretty bad). STATIC should be safe, since our node's local bounds are static, thus computeBounds() which modifies the queryGeometry // is only called once.