diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2012-07-01 17:01:30 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 20:46:29 +0000 |
commit | dc8e91ec5ecb3c150fba41bc89d6d0b2f6fbbc10 (patch) | |
tree | 02f967e4d3a50ad61faad558c121f65b6c1c0017 /src/sdl/sdl_glimp.c | |
parent | e5a8d81125715abe59861f1b77cfa518f55ab441 (diff) |
r_ignorehwgamma 1 does not actually turn on software gamma (#5511) - patch by Serge Belyshev
Diffstat (limited to 'src/sdl/sdl_glimp.c')
-rw-r--r-- | src/sdl/sdl_glimp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index babbaade..3dadb5b8 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -746,6 +746,12 @@ success: // http://bugzilla.icculus.org/show_bug.cgi?id=4316 glConfig.deviceSupportsGamma = SDL_SetGamma( 1.0f, 1.0f, 1.0f ) >= 0; + if ( -1 == r_ignorehwgamma->integer) + glConfig.deviceSupportsGamma = 1; + + if ( 1 == r_ignorehwgamma->integer) + glConfig.deviceSupportsGamma = 0; + // get our config strings Q_strncpyz( glConfig.vendor_string, (char *) qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) ); Q_strncpyz( glConfig.renderer_string, (char *) qglGetString (GL_RENDERER), sizeof( glConfig.renderer_string ) ); |