Fixed pre compilation osg::Program state leaking into the main scene graph rendering

This commit is contained in:
Robert Osfield
2017-10-25 16:13:26 +01:00
parent c8bd6fd100
commit 248805fedd
3 changed files with 21 additions and 2 deletions

View File

@@ -97,6 +97,9 @@ class OSGUTIL_EXPORT GLObjectsVisitor : public osg::NodeVisitor
void apply(osg::Drawable& drawable);
void apply(osg::StateSet& stateset);
/** Do a compile traversal and then reset any state,*/
void compile(osg::Node& node);
protected:
typedef std::set<osg::Drawable*> DrawableAppliedSet;