Fixed bug where the Optimizer::StateVisitor was trying to optimize
non existant StateSet's.
This commit is contained in:
parent
1571209a82
commit
a1f23bbccd
@ -507,6 +507,7 @@ void Optimizer::StateVisitor::optimize()
|
||||
|
||||
// duplicate state attributes removed.
|
||||
// now need to look at duplicate state sets.
|
||||
if (_statesets.size()>=2)
|
||||
{
|
||||
// create the list of stateset's.
|
||||
typedef std::vector<osg::StateSet*> StateSetSortList;
|
||||
|
Loading…
Reference in New Issue
Block a user