engine: drop setgl command

This commit is contained in:
Alibek Omarov
2026-02-20 22:08:26 +05:00
parent 0abb667c28
commit 2735add7d0
2 changed files with 0 additions and 20 deletions

View File

@@ -1118,24 +1118,6 @@ static void Cvar_Set_f( void )
Cvar_Set2( Cmd_Argv( 1 ), combined );
}
/*
============
Cvar_SetGL_f
As Cvar_Set, but also flags it as glconfig
============
*/
static void Cvar_SetGL_f( void )
{
if( Cmd_Argc() != 3 )
{
Con_Printf( S_USAGE "setgl <variable> <value>\n" );
return;
}
Cvar_SetGL( Cmd_Argv( 1 ), Cmd_Argv( 2 ) );
}
/*
============
Cvar_Reset_f
@@ -1326,7 +1308,6 @@ void Cvar_Init( void )
Cvar_RegisterVariable( &cmd_scripting );
Cvar_RegisterVariable( &host_developer ); // early registering for dev
Cvar_RegisterVariable( &cl_filterstuffcmd );
Cmd_AddRestrictedCommand( "setgl", Cvar_SetGL_f, "change the value of a opengl variable" ); // OBSOLETE
Cmd_AddRestrictedCommand( "toggle", Cvar_Toggle_f, "toggles a console variable's values (use for more info)" );
Cmd_AddRestrictedCommand( "reset", Cvar_Reset_f, "reset any type variable to initial value" );
Cmd_AddCommand( "set", Cvar_Set_f, "create or change the value of a console variable" );

View File

@@ -1316,7 +1316,6 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
}
host.change_game = false; // done
Cmd_RemoveCommand( "setgl" );
Cbuf_ExecStuffCmds(); // execute stuffcmds (commandline)
SCR_CheckStartupVids(); // must be last