Updated the osgUtil::Optimize so that the call to Optimize::StateVisitor is

#ifdef out under Win32 and STL port isn't being used. This prevents crashes
due to MS's flacky STL implementation.
This commit is contained in:
Robert Osfield
2001-10-19 15:30:54 +00:00
parent ccc3d3fd8a
commit 20e5751a4a

View File

@@ -41,12 +41,11 @@ void Optimizer::optimize(osg::Node* node, unsigned int options)
if (options & SHARE_DUPLICATE_STATE)
{
#ifndef WIN32
// optimize the state in scene graph, removing duplicate state.
#endif
#if !defined(WIN32) || defined(_STLPORT_VERSION)
StateVisitor osv;
node->accept(osv);
osv.optimize();
#endif
}
}