diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-12-04 00:27:17 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-12-04 02:40:22 +0400 |
commit | 8be659d3181ad7472dce8c0e3cdd767db22ea90d (patch) | |
tree | 68ad1ed3fca36c31f8c4b4f4a0bdeecd4f022af7 /src/refresh/sw/light.c | |
parent | 32a867e33a6b7ce37c029a23d5126291b1b244d6 (diff) |
Convert edge rasterizer to 32-bit color.
Diffstat (limited to 'src/refresh/sw/light.c')
-rw-r--r-- | src/refresh/sw/light.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/refresh/sw/light.c b/src/refresh/sw/light.c index b256ab5..ec31e37 100644 --- a/src/refresh/sw/light.c +++ b/src/refresh/sw/light.c @@ -322,12 +322,16 @@ void R_BuildLightMap(void) // bound, invert, and shift for (i = 0; i < size; i++) { t = blocklights[i]; +#if 0 if (t < 0) t = 0; t = (255 * 256 - t) >> (8 - VID_CBITS); if (t < (1 << 6)) t = (1 << 6); +#else + clamp(t, 255, 65535); +#endif blocklights[i] = t; } |