diff --git a/applications/osgviewer/osgviewer.cpp b/applications/osgviewer/osgviewer.cpp index 71f5d41a4..133d1935a 100644 --- a/applications/osgviewer/osgviewer.cpp +++ b/applications/osgviewer/osgviewer.cpp @@ -14,8 +14,6 @@ #include #include -#include - int main( int argc, char **argv ) { @@ -104,16 +102,6 @@ int main( int argc, char **argv ) // create the windows and run the threads. viewer.realize(); - { - osgProducer::OsgSceneHandler *sh = viewer.getSceneHandlerList().front().get(); - osgUtil::SceneView *sv = sh->getSceneView(); - osg::CullStack::CullingMode cullingMode = sv->getCullingMode(); - cullingMode &= ~(osg::CullStack::SMALL_FEATURE_CULLING); - sv->setCullingMode( cullingMode ); - - - } - while( !viewer.done() ) { // wait for all cull and draw threads to complete.