Change ordering of LocalMap nodes to make sure they are traversed before the CompositeMapRenderer.

This commit is contained in:
scrawl 2017-03-08 21:13:17 +01:00
parent 0756fc4ae6
commit c684860e3b

View file

@ -222,7 +222,7 @@ void LocalMap::setupRenderToTexture(osg::ref_ptr<osg::Camera> camera, int x, int
camera->attach(osg::Camera::COLOR_BUFFER, texture);
camera->addChild(mSceneRoot);
mRoot->addChild(camera);
mRoot->insertChild(0, camera);
mActiveCameras.push_back(camera);
MapSegment& segment = mSegments[std::make_pair(x, y)];