mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 03:33:28 +00:00
gl_polyblend: RIP
This commit is contained in:
parent
f7f968daeb
commit
66bc30c2a8
2 changed files with 3 additions and 7 deletions
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue