- Timestamp:
- 10/21/08 17:51:56 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/GeometryRecords.cpp
r7756 r9041 393 393 } 394 394 395 #if 0 396 // note from Robert Osfield, this "optimization" breaks multi-textured datasets that mix single texture 397 // and mulit-texture geometries as the Multitexture parsing can come after the below code, and accidentally 398 // polute the non multi-texture geometries StateSet. 399 395 400 // A simple share stateset optimization. 396 401 static osg::ref_ptr<osg::StateSet> lastStateset; … … 399 404 else 400 405 lastStateset = stateset; 406 #endif 401 407 402 408 _geode->setStateSet(stateset.get()); … … 956 962 } 957 963 964 #if 0 965 // note from Robert Osfield, this "optimization" breaks multi-textured datasets that mix single texture 966 // and mulit-texture geometries as the Multitexture parsing can come after the below code, and accidentally 967 // polute the non multi-texture geometries StateSet. 968 958 969 // A simple share stateset optimization. 959 970 static osg::ref_ptr<osg::StateSet> lastStateset; … … 962 973 else 963 974 lastStateset = stateset; 975 #endif 964 976 965 977 _geode->setStateSet(stateset.get());
