add shorthand option -nosRGB to turn off all sRGB modes

This commit is contained in:
Rudolf Polzer 2011-12-25 19:45:09 +01:00
parent 56bbeb0552
commit f536f829e5
2 changed files with 17 additions and 0 deletions

View 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" );

View 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 ] );