GL cleanup. (cleanup after Endy mainly)

This commit is contained in:
Forest Hale 2000-06-30 00:47:26 +00:00
parent fa7a67e9fb
commit 0b826825ec
4 changed files with 89 additions and 132 deletions

View file

@ -101,13 +101,15 @@ V_CalcBlend (void)
a = 1.0 - a3;
}
if (a > 1.0)
// LordHavoc: saturate color
if (a)
{
a2 = 1.0 / a;
r *= a2;
g *= a2;
b *= a2;
a = 1.0;
if (a > 1) // clamp alpha blend too
a = 1;
}
v_blend[0] = min(r, 255.0)/255.0;