Replaced r_multiSamples with r_antiAliasing to switch between SMAA, MSAA ( and TXAA future)

This commit is contained in:
Robert Beckebans 2015-12-30 12:07:24 +01:00
parent 08f28edfb0
commit e2e4295556
7 changed files with 124 additions and 59 deletions

View file

@ -295,15 +295,22 @@ static void R_CheckCvars()
}
}
if( r_multiSamples.IsModified() )
if( r_antiAliasing.IsModified() )
{
if( r_multiSamples.GetInteger() > 0 )
switch( r_antiAliasing.GetInteger() )
{
glEnable( GL_MULTISAMPLE );
}
else
{
glDisable( GL_MULTISAMPLE );
case ANTI_ALIASING_MSAA_2X:
case ANTI_ALIASING_MSAA_4X:
case ANTI_ALIASING_MSAA_8X:
if( r_antiAliasing.GetInteger() > 0 )
{
glEnable( GL_MULTISAMPLE );
}
break;
default:
glDisable( GL_MULTISAMPLE );
break;
}
}