projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c97bcc
)
add also a -nosRGB option to turn sRGB off
author
Rudolf Polzer <divverent@xonotic.org>
Sat, 22 Oct 2011 13:38:56 +0000
(15:38 +0200)
committer
Rudolf Polzer <divverent@xonotic.org>
Sat, 22 Oct 2011 13:38:56 +0000
(15:38 +0200)
tools/quake3/q3map2/light.c
patch
|
blob
|
history
diff --git
a/tools/quake3/q3map2/light.c
b/tools/quake3/q3map2/light.c
index 25b5a87cce1af23494ec1cd67eecee1606eac95c..b6dcb1224e1c14589c00f554da66e84353d1f840 100644
(file)
--- a/
tools/quake3/q3map2/light.c
+++ b/
tools/quake3/q3map2/light.c
@@
-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 ] );