From 0c44cbd7ea7fc61664445353994aad69fced947e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 9 Feb 2012 10:41:09 +0100 Subject: [PATCH] fix falloff tolerance for sRGB --- tools/quake3/q3map2/light.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index ae5b40e6..c5015e84 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -2852,6 +2852,10 @@ int LightMain( int argc, char **argv ) } + /* fix up falloff tolerance for sRGB */ + if(lightmapsRGB) + falloffTolerance = Image_LinearFloatFromsRGBFloat(falloffTolerance * (1.0 / 255.0)) * 255.0; + /* fix up samples count */ if(lightRandomSamples) { -- 2.39.2