From: ehofman Date: Sun, 14 Sep 2008 09:34:17 +0000 (+0000) Subject: Add the alpha test back in so the instruments won't disappear after changing the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49030e700ba276d5cd6ffa4f4e661a266fa0105c;p=flightgear.git Add the alpha test back in so the instruments won't disappear after changing the view direction --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 19d9f0320..c952faed9 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -486,6 +486,7 @@ FGRenderer::init( void ) mRoot->addChild(lightSource); stateSet = globals->get_scenery()->get_scene_graph()->getOrCreateStateSet(); + stateSet->setMode(GL_ALPHA_TEST, osg::StateAttribute::ON); stateSet->setMode(GL_LIGHTING, osg::StateAttribute::ON); stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::ON);