mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
Change ordering of LocalMap nodes to make sure they are traversed before the CompositeMapRenderer.
This commit is contained in:
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->attach(osg::Camera::COLOR_BUFFER, texture);
|
||||||
|
|
||||||
camera->addChild(mSceneRoot);
|
camera->addChild(mSceneRoot);
|
||||||
mRoot->addChild(camera);
|
mRoot->insertChild(0, camera);
|
||||||
mActiveCameras.push_back(camera);
|
mActiveCameras.push_back(camera);
|
||||||
|
|
||||||
MapSegment& segment = mSegments[std::make_pair(x, y)];
|
MapSegment& segment = mSegments[std::make_pair(x, y)];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user