diff --git a/examples/osgviewerMFC/MFC_OSG.cpp b/examples/osgviewerMFC/MFC_OSG.cpp index 56056b4f8..7c37af710 100644 --- a/examples/osgviewerMFC/MFC_OSG.cpp +++ b/examples/osgviewerMFC/MFC_OSG.cpp @@ -97,8 +97,8 @@ void cOSG::InitCameraConfig(void) // Create the Graphics Context osg::GraphicsContext* gc = osg::GraphicsContext::createGraphicsContext(traits.get()); - // Init a new Camera (Master for this View) - osg::ref_ptr camera = new osg::Camera; + // Init Master Camera for this View + osg::ref_ptr camera = mViewer->getCamera(); // Assign Graphics Context to the Camera camera->setGraphicsContext(gc);