Added missing Camera::setDrawBuffer() & setReadBuffer()
This commit is contained in:
parent
731065a32e
commit
f8eabd38ba
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user