From f536f829e55b4b3ce32e0c1e06ba5185a073a173 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 25 Dec 2011 19:45:09 +0100 Subject: [PATCH] add shorthand option -nosRGB to turn off all sRGB modes --- tools/quake3/q3map2/bsp.c | 7 +++++++ tools/quake3/q3map2/light.c | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/tools/quake3/q3map2/bsp.c b/tools/quake3/q3map2/bsp.c index 2ef482f1..4ccf97e2 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -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" ); diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 74ed5a46..ae5b40e6 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -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 ] ); -- 2.39.2