Browse files

Added explict setting of the PolygonMode to over the distion mesh bei…

…ng toggled to wireframe.
  • Loading branch information...
1 parent b683c69 commit f1eff78fd2cd633578ae9c50745c918c63ee1cb6 @osg-training-guest osg-training-guest committed Oct 25, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/osgViewer/Keystone.cpp
View
2 src/osgViewer/Keystone.cpp
@@ -20,6 +20,7 @@
#include <osg/io_utils>
#include <osg/DisplaySettings>
#include <osg/ValueObject>
+#include <osg/PolygonMode>
#include <osgDB/WriteFile>
#include <osgDB/ReadFile>
@@ -208,6 +209,7 @@ osg::Geode* Keystone::createKeystoneDistortionMesh()
geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
geometry->getOrCreateStateSet()->setRenderBinDetails(0, "RenderBin");
+ geometry->getOrCreateStateSet()->setAttribute(new osg::PolygonMode(), osg::StateAttribute::ON|osg::StateAttribute::PROTECTED);
kuc->update(geometry.get());

0 comments on commit f1eff78

Please sign in to comment.