From ac383e15c1568d38a6b9aaad68582f058b10826b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 25 Oct 2013 15:47:41 +0000 Subject: [PATCH] Added explict setting of the PolygonMode to over the distion mesh being toggled to wireframe. --- src/osgViewer/Keystone.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgViewer/Keystone.cpp b/src/osgViewer/Keystone.cpp index cbb316a09..8a68a5c45 100644 --- a/src/osgViewer/Keystone.cpp +++ b/src/osgViewer/Keystone.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -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());