Reorder the setProjectionMatrix.. mathod
This commit is contained in:
parent
581b1c322e
commit
6c154441e2
@ -146,8 +146,8 @@ class ViewerQT : public osgViewer::Viewer, public AdapterWidget
|
||||
AdapterWidget( parent, name, shareWidget, f )
|
||||
{
|
||||
getCamera()->setViewport(new osg::Viewport(0,0,width(),height()));
|
||||
getCamera()->setGraphicsContext(getGraphicsWindow());
|
||||
getCamera()->setProjectionMatrixAsPerspective(30.0f, static_cast<double>(width())/static_cast<double>(height()), 1.0f, 10000.0f);
|
||||
getCamera()->setGraphicsContext(getGraphicsWindow());
|
||||
|
||||
setThreadingModel(osgViewer::Viewer::SingleThreaded);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user