mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
Rename gl_polyblend to gl1_polyblend and unite *_lockpvs to r_lockpvs.
This commit is contained in:
parent
6c99cef52d
commit
78ff99dd86
9 changed files with 23 additions and 21 deletions
|
@ -210,7 +210,7 @@ extern cvar_t *gl_zfix;
|
|||
extern cvar_t *r_clear;
|
||||
extern cvar_t *gl_cull;
|
||||
extern cvar_t *gl_polyblend;
|
||||
extern cvar_t *gl_flashblend;
|
||||
extern cvar_t *gl1_flashblend;
|
||||
extern cvar_t *gl_modulate;
|
||||
extern cvar_t *gl_drawbuffer;
|
||||
extern cvar_t *gl_swapinterval;
|
||||
|
@ -219,7 +219,7 @@ extern cvar_t *gl_texturemode;
|
|||
extern cvar_t *gl_texturealphamode;
|
||||
extern cvar_t *gl_texturesolidmode;
|
||||
extern cvar_t *gl_saturatelighting;
|
||||
extern cvar_t *gl_lockpvs;
|
||||
extern cvar_t *r_lockpvs;
|
||||
extern cvar_t *gl_msaa_samples;
|
||||
|
||||
extern cvar_t *vid_fullscreen;
|
||||
|
|
|
@ -92,7 +92,7 @@ R_RenderDlights(void)
|
|||
int i;
|
||||
dlight_t *l;
|
||||
|
||||
if (!gl_flashblend->value)
|
||||
if (!gl1_flashblend->value)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ R_PushDlights(void)
|
|||
int i;
|
||||
dlight_t *l;
|
||||
|
||||
if (gl_flashblend->value)
|
||||
if (gl1_flashblend->value)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -118,14 +118,14 @@ cvar_t *gl_finish;
|
|||
cvar_t *r_clear;
|
||||
cvar_t *gl_cull;
|
||||
cvar_t *gl_polyblend;
|
||||
cvar_t *gl_flashblend;
|
||||
cvar_t *gl1_flashblend;
|
||||
cvar_t *gl_saturatelighting;
|
||||
cvar_t *gl_swapinterval;
|
||||
cvar_t *gl_texturemode;
|
||||
cvar_t *gl_texturealphamode;
|
||||
cvar_t *gl_texturesolidmode;
|
||||
cvar_t *gl_anisotropic;
|
||||
cvar_t *gl_lockpvs;
|
||||
cvar_t *r_lockpvs;
|
||||
cvar_t *gl_msaa_samples;
|
||||
|
||||
cvar_t *vid_fullscreen;
|
||||
|
@ -1235,13 +1235,13 @@ R_Register(void)
|
|||
r_clear = ri.Cvar_Get("r_clear", "0", 0);
|
||||
gl_cull = ri.Cvar_Get("gl_cull", "1", 0);
|
||||
gl_polyblend = ri.Cvar_Get("gl_polyblend", "1", 0);
|
||||
gl_flashblend = ri.Cvar_Get("gl_flashblend", "0", 0);
|
||||
gl1_flashblend = ri.Cvar_Get("gl1_flashblend", "0", 0);
|
||||
|
||||
gl_texturemode = ri.Cvar_Get("gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE);
|
||||
gl_texturealphamode = ri.Cvar_Get("gl_texturealphamode", "default", CVAR_ARCHIVE);
|
||||
gl_texturesolidmode = ri.Cvar_Get("gl_texturesolidmode", "default", CVAR_ARCHIVE);
|
||||
gl_anisotropic = ri.Cvar_Get("gl_anisotropic", "0", CVAR_ARCHIVE);
|
||||
gl_lockpvs = ri.Cvar_Get("gl_lockpvs", "0", 0);
|
||||
r_lockpvs = ri.Cvar_Get("r_lockpvs", "0", 0);
|
||||
|
||||
gl_palettedtexture = ri.Cvar_Get("gl_palettedtexture", "0", CVAR_ARCHIVE);
|
||||
gl_pointparameters = ri.Cvar_Get("gl_pointparameters", "1", CVAR_ARCHIVE);
|
||||
|
|
|
@ -656,7 +656,7 @@ R_DrawInlineBModel(void)
|
|||
dlight_t *lt;
|
||||
|
||||
/* calculate dynamic lighting for bmodel */
|
||||
if (!gl_flashblend->value)
|
||||
if (!gl1_flashblend->value)
|
||||
{
|
||||
lt = r_newrefdef.dlights;
|
||||
|
||||
|
@ -992,7 +992,7 @@ R_MarkLeaves(void)
|
|||
|
||||
/* development aid to let you run around
|
||||
and see exactly where the pvs ends */
|
||||
if (gl_lockpvs->value)
|
||||
if (r_lockpvs->value)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ cvar_t *r_drawentities;
|
|||
cvar_t *r_drawworld;
|
||||
cvar_t *gl_nolerp_list;
|
||||
cvar_t *gl_nobind;
|
||||
cvar_t *gl_lockpvs;
|
||||
cvar_t *r_lockpvs;
|
||||
cvar_t *r_novis;
|
||||
cvar_t *r_speeds;
|
||||
cvar_t *gl_finish;
|
||||
|
@ -236,7 +236,7 @@ GL3_Register(void)
|
|||
gl_zfix = ri.Cvar_Get("gl_zfix", "0", 0);
|
||||
r_clear = ri.Cvar_Get("r_clear", "0", 0);
|
||||
gl_cull = ri.Cvar_Get("gl_cull", "1", 0);
|
||||
gl_lockpvs = ri.Cvar_Get("gl_lockpvs", "0", 0);
|
||||
r_lockpvs = ri.Cvar_Get("r_lockpvs", "0", 0);
|
||||
r_novis = ri.Cvar_Get("r_novis", "0", 0);
|
||||
r_speeds = ri.Cvar_Get("r_speeds", "0", 0);
|
||||
gl_finish = ri.Cvar_Get("gl_finish", "0", CVAR_ARCHIVE);
|
||||
|
@ -278,13 +278,13 @@ GL3_Register(void)
|
|||
r_clear = ri.Cvar_Get("r_clear", "0", 0);
|
||||
// gl_cull = ri.Cvar_Get("gl_cull", "1", 0);
|
||||
gl_polyblend = ri.Cvar_Get("gl_polyblend", "1", 0);
|
||||
//gl_flashblend = ri.Cvar_Get("gl_flashblend", "0", 0);
|
||||
//gl1_flashblend = ri.Cvar_Get("gl1_flashblend", "0", 0);
|
||||
|
||||
//gl_texturemode = ri.Cvar_Get("gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE);
|
||||
gl_texturealphamode = ri.Cvar_Get("gl_texturealphamode", "default", CVAR_ARCHIVE);
|
||||
gl_texturesolidmode = ri.Cvar_Get("gl_texturesolidmode", "default", CVAR_ARCHIVE);
|
||||
//gl_anisotropic = ri.Cvar_Get("gl_anisotropic", "0", CVAR_ARCHIVE);
|
||||
//gl_lockpvs = ri.Cvar_Get("gl_lockpvs", "0", 0);
|
||||
//r_lockpvs = ri.Cvar_Get("r_lockpvs", "0", 0);
|
||||
|
||||
//gl_palettedtexture = ri.Cvar_Get("gl_palettedtexture", "0", CVAR_ARCHIVE); NOPE.
|
||||
gl_pointparameters = ri.Cvar_Get("gl_pointparameters", "1", CVAR_ARCHIVE);
|
||||
|
@ -1446,7 +1446,7 @@ GL3_RenderView(refdef_t *fd)
|
|||
|
||||
GL3_DrawEntitiesOnList();
|
||||
|
||||
// kick the silly gl_flashblend poly lights
|
||||
// kick the silly gl1_flashblend poly lights
|
||||
// GL3_RenderDlights();
|
||||
|
||||
GL3_DrawParticles();
|
||||
|
|
|
@ -863,7 +863,7 @@ GL3_MarkLeaves(void)
|
|||
|
||||
/* development aid to let you run around
|
||||
and see exactly where the pvs ends */
|
||||
if (gl_lockpvs->value)
|
||||
if (r_lockpvs->value)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -488,7 +488,7 @@ extern cvar_t *r_customheight;
|
|||
|
||||
extern cvar_t *gl_nolerp_list;
|
||||
extern cvar_t *gl_nobind;
|
||||
extern cvar_t *gl_lockpvs;
|
||||
extern cvar_t *r_lockpvs;
|
||||
extern cvar_t *r_novis;
|
||||
|
||||
extern cvar_t *gl_cull;
|
||||
|
|
|
@ -153,7 +153,7 @@ cvar_t *vid_fullscreen;
|
|||
cvar_t *vid_gamma;
|
||||
|
||||
//PGM
|
||||
cvar_t *sw_lockpvs;
|
||||
cvar_t *r_lockpvs;
|
||||
//PGM
|
||||
|
||||
#define STRINGER(x) "x"
|
||||
|
@ -297,7 +297,7 @@ void R_Register (void)
|
|||
sw_overbrightbits->modified = true; // force us to rebuild pallete later
|
||||
|
||||
//PGM
|
||||
sw_lockpvs = ri.Cvar_Get ("sw_lockpvs", "0", 0);
|
||||
r_lockpvs = ri.Cvar_Get ("r_lockpvs", "0", 0);
|
||||
//PGM
|
||||
}
|
||||
|
||||
|
@ -453,7 +453,7 @@ void R_MarkLeaves (void)
|
|||
|
||||
// development aid to let you run around and see exactly where
|
||||
// the pvs ends
|
||||
if (sw_lockpvs->value)
|
||||
if (r_lockpvs->value)
|
||||
return;
|
||||
|
||||
r_visframecount++;
|
||||
|
|
|
@ -53,7 +53,9 @@ replacement_t replacements[] = {
|
|||
{"gl_customheight", "r_customheight"},
|
||||
{"gl_customwidth", "r_customheight"},
|
||||
{"gl_dynamic", "gl1_dynamic"},
|
||||
{"gl_farsee", "r_farsee"}
|
||||
{"gl_farsee", "r_farsee"},
|
||||
{"gl_flashblend", "gl1_flashblend"},
|
||||
{"gl_lockpvs", "r_lockpvs"}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue