Changed the default depth to 24.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ void VisualChooser::setSimpleConfiguration( bool doublebuffer )
|
||||
{
|
||||
clear();
|
||||
addAttribute( RGBA );
|
||||
addAttribute( DepthSize, 16 );
|
||||
addAttribute( DepthSize, 24 );
|
||||
if (doublebuffer)
|
||||
addAttribute( DoubleBuffer );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user