Fixed blending mode on stats output.

This commit is contained in:
Robert Osfield
2003-07-23 14:59:27 +00:00
parent e95768417c
commit ace3684d6a

View File

@@ -70,6 +70,7 @@ public:
_stateset->setAttribute(_viewport.get());
_stateset->setAttribute(new osg::BlendFunc());
_stateset->setMode(GL_DEPTH_TEST,osg::StateAttribute::OFF);
_stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
_projection = new osg::RefMatrix(osg::Matrix::ortho2D(0.0,1280,0,1024));
_modelview = new osg::RefMatrix();
@@ -167,7 +168,6 @@ void ViewerEventHandler::StatsAndHelpDrawCallback::operator()( const Producer::C
displayHelp();
}
state.popStateSet();
}