Build fix.

This commit is contained in:
Robert Osfield 2017-05-11 16:27:20 +01:00
parent 36bd42b0dd
commit 9738d19343

View File

@ -223,7 +223,7 @@ osgViewer::View* createView(osg::ref_ptr<osg::Node> scenegraph, osg::ref_ptr<osg
osgViewer::View* view = new osgViewer::View; osgViewer::View* view = new osgViewer::View;
view->getCamera()->setGraphicsContext(gc); view->getCamera()->setGraphicsContext(gc.get());
view->getCamera()->setViewport(new osg::Viewport(x, y, width, height)); view->getCamera()->setViewport(new osg::Viewport(x, y, width, height));
//view->getCamera()->setProjectionMatrixAsPerspective(30.0, double(width) / double(height), 1.0, 1000.0); //view->getCamera()->setProjectionMatrixAsPerspective(30.0, double(width) / double(height), 1.0, 1000.0);
view->setCameraManipulator(new osgGA::TrackballManipulator); view->setCameraManipulator(new osgGA::TrackballManipulator);