diff --git a/examples/osgcamera/osgcamera.cpp b/examples/osgcamera/osgcamera.cpp index 208f95b38..d67f1938c 100644 --- a/examples/osgcamera/osgcamera.cpp +++ b/examples/osgcamera/osgcamera.cpp @@ -170,7 +170,6 @@ int main( int argc, char **argv ) if (apm.valid()) viewer.setCameraManipulator(apm.get()); else viewer.setCameraManipulator( new osgGA::TrackballManipulator() ); - viewer.getCamera()->setClearColor(osg::Vec4f(0.6f,0.6f,0.8f,1.0f)); #if 0 @@ -187,7 +186,7 @@ int main( int argc, char **argv ) viewer.realize(); - bool limitNumberOfFrames = true; + bool limitNumberOfFrames = false; unsigned int numFrames = 0; unsigned int maxFrames = 10; diff --git a/src/osg/View.cpp b/src/osg/View.cpp index c9fc85ccb..f41634f4d 100644 --- a/src/osg/View.cpp +++ b/src/osg/View.cpp @@ -20,11 +20,8 @@ View::View() // osg::notify(osg::NOTICE)<<"Constructing osg::View"<setProjectionMatrixAsPerspective(50.0f,1.4f,1.0f,10000.0f); -#else _camera->setProjectionMatrixAsFrustum(-0.325, 0.325, -0.26, 0.26, 1.0f,10000.0f); -#endif + _camera->setClearColor(osg::Vec4f(0.2f, 0.2f, 0.4f, 1.0f)); } View::~View()