Added dummy StateSet at top of scene graph when using ShaderGen to copy with subgrahs that contain no StateSet
This commit is contained in:
@@ -279,6 +279,7 @@ void View::setSceneData(osg::Node* node)
|
||||
{
|
||||
#if defined(OSG_GLES2_AVAILABLE)
|
||||
osgUtil::ShaderGenVisitor sgv;
|
||||
getSceneData()->getOrCreateStateSet();
|
||||
getSceneData()->accept(sgv);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user