Added dummy StateSet at top of scene graph when using ShaderGen to copy with subgrahs that contain no StateSet

This commit is contained in:
Robert Osfield
2009-11-13 12:51:42 +00:00
parent 6649f51ff2
commit b3feedaf0a

View File

@@ -279,6 +279,7 @@ void View::setSceneData(osg::Node* node)
{
#if defined(OSG_GLES2_AVAILABLE)
osgUtil::ShaderGenVisitor sgv;
getSceneData()->getOrCreateStateSet();
getSceneData()->accept(sgv);
#endif