From 689578c13a9ca3fb0c4cad771f6cc8fb08d3f202 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 27 Jan 2007 17:57:58 +0000 Subject: [PATCH] Added osg::PolygonMode to local StateSet to protect it from being affected by stateset manipulator. --- src/osgViewer/StatsHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgViewer/StatsHandler.cpp b/src/osgViewer/StatsHandler.cpp index 811e4dbca..114f338d7 100644 --- a/src/osgViewer/StatsHandler.cpp +++ b/src/osgViewer/StatsHandler.cpp @@ -13,6 +13,8 @@ #include +#include + 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");