diff --git a/src/osgUtil/Optimizer.cpp b/src/osgUtil/Optimizer.cpp index e38324b57..208c23cfe 100644 --- a/src/osgUtil/Optimizer.cpp +++ b/src/osgUtil/Optimizer.cpp @@ -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 StateSetSortList;