mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Fix a bogus cshift calculation in sw32.
Found via valgrind and gammatable having become malloced instead of static.
This commit is contained in:
parent
07ab5600c9
commit
799a0ae018
1 changed files with 1 additions and 1 deletions
|
@ -1227,7 +1227,7 @@ sw32_Draw_BlendScreen (quat_t color)
|
|||
|
||||
r += (int) (color[3] * (color[0] * 256 - r));
|
||||
g += (int) (color[3] * (color[1] * 256 - g));
|
||||
b += (int) (color[3] * (color[2] * 256 -g));
|
||||
b += (int) (color[3] * (color[2] * 256 - b));
|
||||
|
||||
newpal[0] = vid.gammatable[r];
|
||||
newpal[1] = vid.gammatable[g];
|
||||
|
|
Loading…
Reference in a new issue