Added explict setting of the PolygonMode to over the distion mesh being toggled to wireframe.

This commit is contained in:
Robert Osfield 2013-10-25 15:47:41 +00:00
parent 4a660f6266
commit ac383e15c1

View File

@ -20,6 +20,7 @@
#include <osg/io_utils> #include <osg/io_utils>
#include <osg/DisplaySettings> #include <osg/DisplaySettings>
#include <osg/ValueObject> #include <osg/ValueObject>
#include <osg/PolygonMode>
#include <osgDB/WriteFile> #include <osgDB/WriteFile>
#include <osgDB/ReadFile> #include <osgDB/ReadFile>
@ -208,6 +209,7 @@ osg::Geode* Keystone::createKeystoneDistortionMesh()
geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF); geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
geometry->getOrCreateStateSet()->setRenderBinDetails(0, "RenderBin"); geometry->getOrCreateStateSet()->setRenderBinDetails(0, "RenderBin");
geometry->getOrCreateStateSet()->setAttribute(new osg::PolygonMode(), osg::StateAttribute::ON|osg::StateAttribute::PROTECTED);
kuc->update(geometry.get()); kuc->update(geometry.get());