mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-12-03 17:42:55 +00:00
Remove unused cvars
This commit is contained in:
parent
1b2708c06e
commit
0307361101
1 changed files with 0 additions and 22 deletions
|
@ -122,11 +122,7 @@ static cvar_t *sw_aliasstats;
|
||||||
cvar_t *sw_clearcolor;
|
cvar_t *sw_clearcolor;
|
||||||
cvar_t *sw_drawflat;
|
cvar_t *sw_drawflat;
|
||||||
cvar_t *sw_draworder;
|
cvar_t *sw_draworder;
|
||||||
static cvar_t *sw_maxedges;
|
|
||||||
static cvar_t *sw_maxsurfs;
|
|
||||||
static cvar_t *r_mode;
|
static cvar_t *r_mode;
|
||||||
static cvar_t *sw_reportedgeout;
|
|
||||||
static cvar_t *sw_reportsurfout;
|
|
||||||
cvar_t *sw_stipplealpha;
|
cvar_t *sw_stipplealpha;
|
||||||
cvar_t *sw_surfcacheoverride;
|
cvar_t *sw_surfcacheoverride;
|
||||||
cvar_t *sw_waterwarp;
|
cvar_t *sw_waterwarp;
|
||||||
|
@ -155,8 +151,6 @@ static cvar_t *vid_gamma;
|
||||||
static cvar_t *r_lockpvs;
|
static cvar_t *r_lockpvs;
|
||||||
//PGM
|
//PGM
|
||||||
|
|
||||||
#define STRINGER(x) "x"
|
|
||||||
|
|
||||||
// sw_vars.c
|
// sw_vars.c
|
||||||
|
|
||||||
// all global and static refresh variables are collected in a contiguous block
|
// all global and static refresh variables are collected in a contiguous block
|
||||||
|
@ -271,12 +265,8 @@ R_Register (void)
|
||||||
sw_clearcolor = ri.Cvar_Get ("sw_clearcolor", "2", 0);
|
sw_clearcolor = ri.Cvar_Get ("sw_clearcolor", "2", 0);
|
||||||
sw_drawflat = ri.Cvar_Get ("sw_drawflat", "0", 0);
|
sw_drawflat = ri.Cvar_Get ("sw_drawflat", "0", 0);
|
||||||
sw_draworder = ri.Cvar_Get ("sw_draworder", "0", 0);
|
sw_draworder = ri.Cvar_Get ("sw_draworder", "0", 0);
|
||||||
sw_maxedges = ri.Cvar_Get ("sw_maxedges", STRINGER(MAXSTACKSURFACES), 0);
|
|
||||||
sw_maxsurfs = ri.Cvar_Get ("sw_maxsurfs", "0", 0);
|
|
||||||
sw_mipcap = ri.Cvar_Get ("sw_mipcap", "0", 0);
|
sw_mipcap = ri.Cvar_Get ("sw_mipcap", "0", 0);
|
||||||
sw_mipscale = ri.Cvar_Get ("sw_mipscale", "1", 0);
|
sw_mipscale = ri.Cvar_Get ("sw_mipscale", "1", 0);
|
||||||
sw_reportedgeout = ri.Cvar_Get ("sw_reportedgeout", "0", 0);
|
|
||||||
sw_reportsurfout = ri.Cvar_Get ("sw_reportsurfout", "0", 0);
|
|
||||||
sw_stipplealpha = ri.Cvar_Get( "sw_stipplealpha", "0", CVAR_ARCHIVE );
|
sw_stipplealpha = ri.Cvar_Get( "sw_stipplealpha", "0", CVAR_ARCHIVE );
|
||||||
sw_surfcacheoverride = ri.Cvar_Get ("sw_surfcacheoverride", "0", 0);
|
sw_surfcacheoverride = ri.Cvar_Get ("sw_surfcacheoverride", "0", 0);
|
||||||
sw_waterwarp = ri.Cvar_Get ("sw_waterwarp", "1", 0);
|
sw_waterwarp = ri.Cvar_Get ("sw_waterwarp", "1", 0);
|
||||||
|
@ -437,9 +427,6 @@ R_ReallocateMapBuffers (void)
|
||||||
if (r_cnumsurfs < NUMSTACKSURFACES)
|
if (r_cnumsurfs < NUMSTACKSURFACES)
|
||||||
r_cnumsurfs = NUMSTACKSURFACES;
|
r_cnumsurfs = NUMSTACKSURFACES;
|
||||||
|
|
||||||
if (r_cnumsurfs < sw_maxsurfs->value)
|
|
||||||
r_cnumsurfs = sw_maxsurfs->value;
|
|
||||||
|
|
||||||
lsurfs = malloc (r_cnumsurfs * sizeof(surf_t));
|
lsurfs = malloc (r_cnumsurfs * sizeof(surf_t));
|
||||||
if (!lsurfs)
|
if (!lsurfs)
|
||||||
{
|
{
|
||||||
|
@ -476,9 +463,6 @@ R_ReallocateMapBuffers (void)
|
||||||
if (r_numallocatededges < NUMSTACKEDGES)
|
if (r_numallocatededges < NUMSTACKEDGES)
|
||||||
r_numallocatededges = NUMSTACKEDGES;
|
r_numallocatededges = NUMSTACKEDGES;
|
||||||
|
|
||||||
if (r_numallocatededges < sw_maxedges->value)
|
|
||||||
r_numallocatededges = sw_maxedges->value;
|
|
||||||
|
|
||||||
r_edges = malloc (r_numallocatededges * sizeof(edge_t));
|
r_edges = malloc (r_numallocatededges * sizeof(edge_t));
|
||||||
if (!r_edges)
|
if (!r_edges)
|
||||||
{
|
{
|
||||||
|
@ -1176,12 +1160,6 @@ RE_RenderFrame (refdef_t *fd)
|
||||||
if (r_dspeeds->value)
|
if (r_dspeeds->value)
|
||||||
R_PrintDSpeeds ();
|
R_PrintDSpeeds ();
|
||||||
|
|
||||||
if (sw_reportsurfout->value && r_outofsurfaces)
|
|
||||||
R_Printf(PRINT_ALL,"Short %d surfaces\n", r_outofsurfaces);
|
|
||||||
|
|
||||||
if (sw_reportedgeout->value && r_outofedges)
|
|
||||||
R_Printf(PRINT_ALL,"Short roughly %d edges\n", r_outofedges * 2 / 3);
|
|
||||||
|
|
||||||
R_ReallocateMapBuffers();
|
R_ReallocateMapBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue