mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
Make Video settings menu revert some settings to default values via Cvar_Reset() instead of hardcoded values (#2589)
This commit is contained in:
parent
dd0161f475
commit
97ed3650d7
1 changed files with 5 additions and 3 deletions
|
@ -683,9 +683,11 @@ static void GraphicsOptions_ApplyChanges( void *unused, int notification )
|
||||||
trap_Cvar_SetValue( "r_mode", s_graphicsoptions.mode.curvalue );
|
trap_Cvar_SetValue( "r_mode", s_graphicsoptions.mode.curvalue );
|
||||||
|
|
||||||
trap_Cvar_SetValue( "r_fullscreen", s_graphicsoptions.fs.curvalue );
|
trap_Cvar_SetValue( "r_fullscreen", s_graphicsoptions.fs.curvalue );
|
||||||
trap_Cvar_SetValue( "r_colorbits", 0 );
|
|
||||||
trap_Cvar_SetValue( "r_depthbits", 0 );
|
trap_Cvar_Reset("r_colorbits");
|
||||||
trap_Cvar_SetValue( "r_stencilbits", 0 );
|
trap_Cvar_Reset("r_depthbits");
|
||||||
|
trap_Cvar_Reset("r_stencilbits");
|
||||||
|
|
||||||
trap_Cvar_SetValue( "r_vertexLight", s_graphicsoptions.lighting.curvalue );
|
trap_Cvar_SetValue( "r_vertexLight", s_graphicsoptions.lighting.curvalue );
|
||||||
|
|
||||||
if ( s_graphicsoptions.geometry.curvalue == 2 )
|
if ( s_graphicsoptions.geometry.curvalue == 2 )
|
||||||
|
|
Loading…
Reference in a new issue