diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index 5d85dcaba..72481bc89 100644 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -102,7 +102,6 @@ using namespace flightgear; using namespace osg; osg::ref_ptr viewer; -static osg::ref_ptr mainCamera; static void setStereoMode( const char * mode ) { @@ -357,7 +356,6 @@ void fgOSInit(int* argc, char** argv) void fgOSCloseWindow() { FGScenery::resetPagerSingleton(); - mainCamera = NULL; flightgear::CameraGroup::setDefault(NULL); WindowSystemAdapter::setWSA(NULL); viewer = NULL;