Merge branch 'next' into durk-atc
This commit is contained in:
commit
ee9a5cf73d
4 changed files with 10 additions and 3 deletions
|
@ -527,7 +527,6 @@ void MapWidget::draw(int dx, int dy)
|
|||
|
||||
if (_root->getBoolValue("centre-on-aircraft")) {
|
||||
_projectionCenter = _aircraft;
|
||||
_root->setBoolValue("centre-on-aircraft", false);
|
||||
}
|
||||
|
||||
double julianDate = globals->get_time_params()->getJD();
|
||||
|
|
BIN
src/Main/.renderer.cxx.swp
Normal file
BIN
src/Main/.renderer.cxx.swp
Normal file
Binary file not shown.
|
@ -613,11 +613,11 @@ FGRenderer::update( bool refresh_camera_settings ) {
|
|||
|
||||
if ( fgGetBool("/sim/rendering/textures") ) {
|
||||
SGVec4f clearColor(l->adj_fog_color());
|
||||
camera->setClearColor(toOsg(clearColor));
|
||||
camera->setClearColor(osg::Vec4(0.0, 0.0, 0.0, 1.0));
|
||||
}
|
||||
} else {
|
||||
SGVec4f clearColor(l->sky_color());
|
||||
camera->setClearColor(toOsg(clearColor));
|
||||
camera->setClearColor(osg::Vec4(0.0, 0.0, 0.0, 1.0));
|
||||
}
|
||||
|
||||
// update fog params if visibility has changed
|
||||
|
|
|
@ -88,6 +88,8 @@ FGTileMgr::~FGTileMgr() {
|
|||
group->removeChildren(0, group->getNumChildren());
|
||||
delete _propListener;
|
||||
_propListener = NULL;
|
||||
// clear OSG cache
|
||||
osgDB::Registry::instance()->clearObjectCache();
|
||||
}
|
||||
|
||||
|
||||
|
@ -122,6 +124,12 @@ void FGTileMgr::reinit()
|
|||
group->removeChildren(0, group->getNumChildren());
|
||||
tile_cache.init();
|
||||
|
||||
// clear OSG cache, except on initial start-up
|
||||
if (state != Start)
|
||||
{
|
||||
osgDB::Registry::instance()->clearObjectCache();
|
||||
}
|
||||
|
||||
state = Inited;
|
||||
|
||||
previous_bucket.make_bad();
|
||||
|
|
Loading…
Reference in a new issue