]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light.c
add also a -nosRGB option to turn sRGB off
[xonotic/netradiant.git] / 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 ] );