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

pull/185/head
scrawl 8 years ago
parent 0756fc4ae6
commit c684860e3b

@ -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)];

Loading…
Cancel
Save