diff --git a/source/gl_rmisc.c b/source/gl_rmisc.c index 4c23412..d199626 100644 --- a/source/gl_rmisc.c +++ b/source/gl_rmisc.c @@ -252,7 +252,6 @@ void R_Init (void) gl_smooth = Cvar_Get("gl_smooth", "1", CVAR_NONE, "None"); gl_smoothdlights = Cvar_Get("gl_smoothdlights", "1", CVAR_NONE, "None"); gl_affinemodels = Cvar_Get("gl_affinemodels", "0", CVAR_NONE, "None"); - gl_polyblend = Cvar_Get("gl_polyblend", "1", CVAR_NONE, "None"); gl_flashblend = Cvar_Get("gl_flashblend", "0", CVAR_NONE, "None"); gl_playermip = Cvar_Get("gl_playermip", "0", CVAR_NONE, "None"); gl_nocolors = Cvar_Get("gl_nocolors", "0", CVAR_NONE, "None"); diff --git a/source/gl_screen.c b/source/gl_screen.c index 3face75..add0dfe 100644 --- a/source/gl_screen.c +++ b/source/gl_screen.c @@ -1148,11 +1148,9 @@ void SCR_UpdateScreen (void) glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } Cvar_SetValue (contrast, bound (0.1, contrast->value, 1)); - if ((gl_polyblend->int_val && v_blend[3]) || contrast->value < 0.999) // epsilon - { + if (v_blend[3] || contrast->value < 0.999) { // epsilon glBegin (GL_QUADS); - if (contrast->value < 0.999) // epsilon - { + if (contrast->value < 0.999) { // epsilon glColor4f (1, 1, 1, (1 - contrast->value)); glVertex2f (0,0); glVertex2f (vid.width, 0); @@ -1160,8 +1158,7 @@ void SCR_UpdateScreen (void) glVertex2f (0, vid.height); } - if (gl_polyblend->int_val && v_blend[3]) - { + if (v_blend[3]) { glColor4fv (v_blend); glVertex2f (0,0); glVertex2f (vid.width, 0);