Added missing Camera::setDrawBuffer() & setReadBuffer()

This commit is contained in:
Robert Osfield 2018-03-06 16:42:11 +00:00
parent 731065a32e
commit f8eabd38ba

View File

@ -64,6 +64,8 @@ bool wxOsgApp::OnInit()
osgViewer::Viewer *viewer = new osgViewer::Viewer; osgViewer::Viewer *viewer = new osgViewer::Viewer;
viewer->getCamera()->setGraphicsContext(gw); viewer->getCamera()->setGraphicsContext(gw);
viewer->getCamera()->setViewport(0,0,width,height); viewer->getCamera()->setViewport(0,0,width,height);
viewer->getCamera()->setDrawBuffer(GL_BACK);
viewer->getCamera()->setReadBuffer(GL_BACK);
viewer->addEventHandler(new osgViewer::StatsHandler); viewer->addEventHandler(new osgViewer::StatsHandler);
viewer->setThreadingModel(osgViewer::Viewer::SingleThreaded); viewer->setThreadingModel(osgViewer::Viewer::SingleThreaded);