summaryrefslogtreecommitdiff
path: root/src/sdl/sdl_gamma.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2012-07-01 17:01:30 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:46:29 +0000
commitdc8e91ec5ecb3c150fba41bc89d6d0b2f6fbbc10 (patch)
tree02f967e4d3a50ad61faad558c121f65b6c1c0017 /src/sdl/sdl_gamma.c
parente5a8d81125715abe59861f1b77cfa518f55ab441 (diff)
r_ignorehwgamma 1 does not actually turn on software gamma (#5511) - patch by Serge Belyshev
Diffstat (limited to 'src/sdl/sdl_gamma.c')
-rw-r--r--src/sdl/sdl_gamma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdl/sdl_gamma.c b/src/sdl/sdl_gamma.c
index 7f16b606..53dc4026 100644
--- a/src/sdl/sdl_gamma.c
+++ b/src/sdl/sdl_gamma.c
@@ -40,7 +40,7 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
Uint16 table[3][256];
int i, j;
- if( !glConfig.deviceSupportsGamma || r_ignorehwgamma->integer )
+ if( !glConfig.deviceSupportsGamma || r_ignorehwgamma->integer > 0 )
return;
for (i = 0; i < 256; i++)