add shorthand option -nosRGB to turn off all sRGB modes
authorRudolf Polzer <divverent@alientrap.org>
Sun, 25 Dec 2011 18:45:09 +0000 (19:45 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 25 Dec 2011 18:45:09 +0000 (19:45 +0100)
tools/quake3/q3map2/bsp.c
tools/quake3/q3map2/light.c

index 2ef482f..4ccf97e 100644 (file)
@@ -952,6 +952,13 @@ int BSPMain( int argc, char **argv )
                        colorsRGB = qfalse;
                        Sys_Printf( "Colors are linear\n" );
                }
+               else if( !strcmp( argv[ i ], "-nosRGB" ) )
+               {
+                       texturesRGB = qfalse;
+                       Sys_Printf( "Textures are linear\n" );
+                       colorsRGB = qfalse;
+                       Sys_Printf( "Colors are linear\n" );
+               }
                else if( !strcmp( argv[ i ], "-altsplit" ) )
                {
                        Sys_Printf( "Alternate BSP splitting (by 27) enabled\n" );
index 74ed5a4..ae5b40e 100644 (file)
@@ -2289,6 +2289,16 @@ int LightMain( int argc, char **argv )
                        Sys_Printf( "Colors are linear\n" );
                }
 
+               else if( !strcmp( argv[ i ], "-nosRGB" ) )
+               {
+                       lightmapsRGB = qtrue;
+                       Sys_Printf( "Lighting is linear\n" );
+                       texturesRGB = qtrue;
+                       Sys_Printf( "Textures are linear\n" );
+                       colorsRGB = qtrue;
+                       Sys_Printf( "Colors are linear\n" );
+               }
+
                else if( !strcmp( argv[ i ], "-exposure" ) )
                {
                        f = atof( argv[ i + 1 ] );