]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
add also a -nosRGB option to turn sRGB off
authorRudolf Polzer <divverent@xonotic.org>
Sat, 22 Oct 2011 13:38:56 +0000 (15:38 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 22 Oct 2011 13:38:56 +0000 (15:38 +0200)
tools/quake3/q3map2/light.c

index 25b5a87cce1af23494ec1cd67eecee1606eac95c..b6dcb1224e1c14589c00f554da66e84353d1f840 100644 (file)
@@ -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 ] );