diff --git a/src/client/refresh/gl/header/local.h b/src/client/refresh/gl/header/local.h index d76c2805..2d3a9cba 100644 --- a/src/client/refresh/gl/header/local.h +++ b/src/client/refresh/gl/header/local.h @@ -205,7 +205,7 @@ extern cvar_t *gl1_picmip; extern cvar_t *gl_showtris; extern cvar_t *gl_showbbox; extern cvar_t *gl_finish; -extern cvar_t *gl_ztrick; +extern cvar_t *gl1_ztrick; extern cvar_t *gl_zfix; extern cvar_t *r_clear; extern cvar_t *gl_cull; diff --git a/src/client/refresh/gl/r_main.c b/src/client/refresh/gl/r_main.c index 09bd3cd8..69135a88 100644 --- a/src/client/refresh/gl/r_main.c +++ b/src/client/refresh/gl/r_main.c @@ -112,7 +112,7 @@ cvar_t *gl1_round_down; cvar_t *gl1_picmip; cvar_t *gl_showtris; cvar_t *gl_showbbox; -cvar_t *gl_ztrick; +cvar_t *gl1_ztrick; cvar_t *gl_zfix; cvar_t *gl_finish; cvar_t *r_clear; @@ -842,7 +842,7 @@ R_Clear(void) stencilFlags |= GL_STENCIL_BUFFER_BIT; } - if (gl_ztrick->value) + if (gl1_ztrick->value) { static int trickframe; @@ -1229,7 +1229,7 @@ R_Register(void) gl1_picmip = ri.Cvar_Get("gl1_picmip", "0", 0); gl_showtris = ri.Cvar_Get("gl_showtris", "0", 0); gl_showbbox = ri.Cvar_Get("gl_showbbox", "0", 0); - gl_ztrick = ri.Cvar_Get("gl_ztrick", "0", 0); + gl1_ztrick = ri.Cvar_Get("gl1_ztrick", "0", 0); gl_zfix = ri.Cvar_Get("gl_zfix", "0", 0); gl_finish = ri.Cvar_Get("gl_finish", "0", CVAR_ARCHIVE); r_clear = ri.Cvar_Get("r_clear", "0", 0); diff --git a/src/client/refresh/gl3/gl3_main.c b/src/client/refresh/gl3/gl3_main.c index 187980be..605e8e4e 100644 --- a/src/client/refresh/gl3/gl3_main.c +++ b/src/client/refresh/gl3/gl3_main.c @@ -267,7 +267,7 @@ GL3_Register(void) //gl_nobind = ri.Cvar_Get("gl_nobind", "0", 0); gl_showtris = ri.Cvar_Get("gl_showtris", "0", 0); gl_showbbox = Cvar_Get("gl_showbbox", "0", 0); - //gl_ztrick = ri.Cvar_Get("gl_ztrick", "0", 0); NOTE: dump this. + //gl1_ztrick = ri.Cvar_Get("gl1_ztrick", "0", 0); NOTE: dump this. //gl_zfix = ri.Cvar_Get("gl_zfix", "0", 0); //gl_finish = ri.Cvar_Get("gl_finish", "0", CVAR_ARCHIVE); r_clear = ri.Cvar_Get("r_clear", "0", 0); diff --git a/src/common/cvar.c b/src/common/cvar.c index a0fa4f5b..f86cf018 100644 --- a/src/common/cvar.c +++ b/src/common/cvar.c @@ -79,7 +79,8 @@ replacement_t replacements[] = { {"gl_stereo_convergence", "gl1_stereo_convergence"}, {"gl_swapinterval", "r_vsync"}, {"gl_texturealphamode", "gl1_texturealphamode"}, - {"gl_texturesolidmode", "gl1_texturesolidmode"} + {"gl_texturesolidmode", "gl1_texturesolidmode"}, + {"gl_ztrick", "gl1_ztrick"} };