diff --git a/src/client/refresh/gl/header/local.h b/src/client/refresh/gl/header/local.h index 29d60e71..633e9714 100644 --- a/src/client/refresh/gl/header/local.h +++ b/src/client/refresh/gl/header/local.h @@ -209,7 +209,7 @@ extern cvar_t *gl_ztrick; extern cvar_t *gl_zfix; extern cvar_t *r_clear; extern cvar_t *gl_cull; -extern cvar_t *gl_polyblend; +extern cvar_t *gl1_polyblend; extern cvar_t *gl1_flashblend; extern cvar_t *r_modulate; extern cvar_t *gl_drawbuffer; diff --git a/src/client/refresh/gl/r_main.c b/src/client/refresh/gl/r_main.c index 5c6c1761..ca85bddd 100644 --- a/src/client/refresh/gl/r_main.c +++ b/src/client/refresh/gl/r_main.c @@ -117,7 +117,7 @@ cvar_t *gl_zfix; cvar_t *gl_finish; cvar_t *r_clear; cvar_t *gl_cull; -cvar_t *gl_polyblend; +cvar_t *gl1_polyblend; cvar_t *gl1_flashblend; cvar_t *gl_saturatelighting; cvar_t *gl_swapinterval; @@ -574,7 +574,7 @@ R_DrawParticles(void) void R_PolyBlend(void) { - if (!gl_polyblend->value) + if (!gl1_polyblend->value) { return; } @@ -1234,7 +1234,7 @@ R_Register(void) gl_finish = ri.Cvar_Get("gl_finish", "0", CVAR_ARCHIVE); 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); + gl1_polyblend = ri.Cvar_Get("gl1_polyblend", "1", 0); gl1_flashblend = ri.Cvar_Get("gl1_flashblend", "0", 0); gl_texturemode = ri.Cvar_Get("gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE); diff --git a/src/client/refresh/gl3/gl3_main.c b/src/client/refresh/gl3/gl3_main.c index 5f43644e..425a876b 100644 --- a/src/client/refresh/gl3/gl3_main.c +++ b/src/client/refresh/gl3/gl3_main.c @@ -276,7 +276,6 @@ GL3_Register(void) //gl_finish = ri.Cvar_Get("gl_finish", "0", CVAR_ARCHIVE); 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); //gl1_flashblend = ri.Cvar_Get("gl1_flashblend", "0", 0); //gl_texturemode = ri.Cvar_Get("gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE); diff --git a/src/common/cvar.c b/src/common/cvar.c index c6e15a38..8ff310a3 100644 --- a/src/common/cvar.c +++ b/src/common/cvar.c @@ -68,7 +68,8 @@ replacement_t replacements[] = { {"gl_particle_att_b", "gl1_particle_att_b"}, {"gl_particle_att_c", "gl1_particle_att_c"}, {"gl_picmip", "gl1_picmip"}, - {"gl_pointparameters", "gl1_pointparameters"} + {"gl_pointparameters", "gl1_pointparameters"}, + {"gl_polyblend", "gl1_polyblend"} };