Added osg::PolygonMode to local StateSet to protect it from being affected by
stateset manipulator.
This commit is contained in:
parent
b8994d4707
commit
689578c13a
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user