From: Rudolf Polzer Date: Sat, 22 Oct 2011 13:38:56 +0000 (+0200) Subject: add also a -nosRGB option to turn sRGB off X-Git-Tag: xonotic-v0.6.0~61 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98bf67071d2f878028003b14b9d1bcf8d81787f6;p=xonotic%2Fnetradiant.git add also a -nosRGB option to turn sRGB off --- diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 25b5a87c..b6dcb122 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -2214,9 +2214,14 @@ int LightMain( int argc, char **argv ) { lightmapsRGB = qtrue; Sys_Printf( "Lighting is in sRGB\n" ); - i++; } - + + else if( !strcmp( argv[ i ], "-nosRGB" ) ) + { + lightmapsRGB = qfalse; + Sys_Printf( "Lighting is linear\n" ); + } + else if( !strcmp( argv[ i ], "-exposure" ) ) { f = atof( argv[ i + 1 ] );