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)
|
#if defined(OSG_GLES2_AVAILABLE)
|
||||||
osgUtil::ShaderGenVisitor sgv;
|
osgUtil::ShaderGenVisitor sgv;
|
||||||
|
getSceneData()->getOrCreateStateSet();
|
||||||
getSceneData()->accept(sgv);
|
getSceneData()->accept(sgv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user