From f8eabd38bae3ccc200e55896e3ed443bb412c022 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 6 Mar 2018 16:42:11 +0000 Subject: [PATCH] Added missing Camera::setDrawBuffer() & setReadBuffer() --- examples/osgviewerWX/osgviewerWX.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgviewerWX/osgviewerWX.cpp b/examples/osgviewerWX/osgviewerWX.cpp index aa6678638..bccd5cd23 100644 --- a/examples/osgviewerWX/osgviewerWX.cpp +++ b/examples/osgviewerWX/osgviewerWX.cpp @@ -64,6 +64,8 @@ bool wxOsgApp::OnInit() osgViewer::Viewer *viewer = new osgViewer::Viewer; viewer->getCamera()->setGraphicsContext(gw); viewer->getCamera()->setViewport(0,0,width,height); + viewer->getCamera()->setDrawBuffer(GL_BACK); + viewer->getCamera()->setReadBuffer(GL_BACK); viewer->addEventHandler(new osgViewer::StatsHandler); viewer->setThreadingModel(osgViewer::Viewer::SingleThreaded);