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:
@@ -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;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user