- Update OsgScreen
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5975 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 8b76ce66b36de1b344e405d5f265d28fa4db0587 Former-commit-id: 4f05e7a2a196fc2fd686f5ba97aa2a22841528e6
This commit is contained in:
parent
5d6117cbb5
commit
32650b8f60
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ void SDScreens::Init(int x,int y, int width, int height, osg::ref_ptr<osg::Node>
|
|||
osg::ref_ptr<osg::Camera> mirrorCam = new osg::Camera;
|
||||
|
||||
viewer = new osgViewer::Viewer;
|
||||
|
||||
viewer->setThreadingModel(osgViewer::Viewer::CullThreadPerCameraDrawThreadPerContext);
|
||||
SDView * view = new SDView(viewer->getCamera(),0,0, m_Winw, m_Winh, mirrorCam.get());
|
||||
osg::ref_ptr<osgViewer::GraphicsWindowEmbedded> gw = viewer->setUpViewerAsEmbeddedInWindow(0, 0, m_Winw, m_Winh);
|
||||
viewer->getCamera()->setViewport(new osg::Viewport(0, 0, m_Winw, m_Winh));
|
||||
|
|
Loading…
Reference in a new issue