From 98bf67071d2f878028003b14b9d1bcf8d81787f6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 22 Oct 2011 15:38:56 +0200 Subject: [PATCH] add also a -nosRGB option to turn sRGB off --- tools/quake3/q3map2/light.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ] ); -- 2.39.2