Fixed display problem with the HUD in osgtext which was caused by the

new mods to SceneView not honouring the z near/far calculation flag.
This commit is contained in:
Robert Osfield
2002-04-15 08:09:02 +00:00
parent c43607c14d
commit 1c4de0e1d2
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ void set2dScene(osg::Group* rootNode)
osg::Geode* geode;
osg::Material* textMaterial;
osg::StateSet* textState;
double xOffset=250;
double xOffset=150;
double yOffset=gFontSize+10;
///////////////////////////////////////////////////////////////////////////

View File

@@ -242,7 +242,7 @@ void SceneView::cull()
cullStage(projection.get(),modelview.get(),_cullVisitor.get(),_rendergraph.get(),_renderStage.get());
}
if (_camera.valid())
if (_camera.valid() && _calc_nearfar)
{
_camera->setNearFar(_near_plane,_far_plane);
}