Fixed bug where the Optimizer::StateVisitor was trying to optimize

non existant StateSet's.
This commit is contained in:
Robert Osfield 2005-05-04 09:11:32 +00:00
parent 1571209a82
commit a1f23bbccd

View File

@ -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;