Changed the default depth to 24.

This commit is contained in:
Robert Osfield
2011-10-28 09:11:21 +00:00
parent 98d50250ff
commit 24ff8796d5
2 changed files with 3 additions and 1 deletions

View File

@@ -69,6 +69,8 @@ static osg::GraphicsContext::Traits* buildTrait(RenderSurface& rs)
}
}
OSG_NOTICE<<"ReaderWriterCFG buildTrait traits->depth="<<traits->depth<<std::endl;
OSG_INFO<<"Set up Traits ( rs.getScreenNum() = "<<rs.getScreenNum()<<" )"<<std::endl;

View File

@@ -174,7 +174,7 @@ void VisualChooser::setSimpleConfiguration( bool doublebuffer )
{
clear();
addAttribute( RGBA );
addAttribute( DepthSize, 16 );
addAttribute( DepthSize, 24 );
if (doublebuffer)
addAttribute( DoubleBuffer );
}