Commit e86338fe by schurade

[CHANGE] return the correct instance

parent 43264b22
......@@ -55,7 +55,7 @@ WGEViewer::WGEViewer( std::string name, int x, int y,
{
try
{
m_View = new osgViewer::Viewer();
m_View = osg::ref_ptr<osgViewer::Viewer>( new osgViewer::Viewer() );
m_View->setCamera( new WGECamera( width, height, projectionMode ) );
m_View->getCamera()->setGraphicsContext( m_GraphicsWindow.get() );
......@@ -95,7 +95,7 @@ WGEViewer::~WGEViewer()
close();
}
osg::ref_ptr<osgViewer::View> WGEViewer::getView()
osg::ref_ptr<osgViewer::Viewer> WGEViewer::getView()
{
return m_View;
}
......
......@@ -101,7 +101,7 @@ public:
*
* \return the OSG Viewer instance.
*/
osg::ref_ptr<osgViewer::View> getView();
osg::ref_ptr<osgViewer::Viewer> getView();
/**
* Resets the view using the installed manipulator.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment