Changed the default for SampleBuffers to be 1 when set.

This commit is contained in:
Robert Osfield
2011-10-28 10:36:29 +00:00
parent 20ffed1fa1
commit 3e7900c39e

View File

@@ -65,13 +65,13 @@ static osg::GraphicsContext::Traits* buildTrait(RenderSurface& rs)
case(VisualChooser::AccumBlueSize): break; // no present mapping
case(VisualChooser::AccumAlphaSize): break; // no present mapping
case(VisualChooser::Samples): traits->samples = it->_parameter; break;
case(VisualChooser::SampleBuffers): traits->sampleBuffers = it->_parameter; break;
case(VisualChooser::SampleBuffers): traits->sampleBuffers = 1; break;
}
}
OSG_NOTICE<<"ReaderWriterCFG buildTrait traits->depth="<<traits->depth<<std::endl;
OSG_INFO<<"Set up Traits ( rs.getScreenNum() = "<<rs.getScreenNum()<<" )"<<std::endl;
OSG_NOTICE<<"ReaderWriterCFG buildTrait traits->samples="<<traits->samples<<std::endl;
OSG_NOTICE<<"ReaderWriterCFG buildTrait traits->sampleBuffers="<<traits->sampleBuffers<<std::endl;
traits->hostName = rs.getHostName();