Added osg::PolygonMode to local StateSet to protect it from being affected by

stateset manipulator.
This commit is contained in:
Robert Osfield 2007-01-27 17:57:58 +00:00
parent b8994d4707
commit 689578c13a

View File

@ -13,6 +13,8 @@
#include <osgViewer/StatsHandler>
#include <osg/PolygonMode>
namespace osgViewer
{
@ -389,6 +391,7 @@ void StatsHandler::setUpScene(osgViewer::Viewer* viewer)
stateset->setMode(GL_LIGHTING,osg::StateAttribute::OFF);
stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
stateset->setMode(GL_DEPTH_TEST,osg::StateAttribute::OFF);
stateset->setAttribute(new osg::PolygonMode(), osg::StateAttribute::PROTECTED);
std::string font("fonts/arial.ttf");