diff options
author | Tim Angus <tim@ngus.net> | 2013-01-19 21:39:35 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 10:59:21 +0100 |
commit | 8f142d06f47c04f146ae4ccce604b8e601c5159d (patch) | |
tree | 6c3f5d73054639a27a0f8e0a017dee74d1d5fc00 /src/sdl/sdl_glimp.c | |
parent | edd219ca213a309a318b15831eb773029ee602cc (diff) |
Fix wacky patch for r_ignorehwgamma
Diffstat (limited to 'src/sdl/sdl_glimp.c')
-rw-r--r-- | src/sdl/sdl_glimp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index fb40dbdc..ffd2719f 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -767,13 +767,8 @@ success: glConfig.hardwareType = GLHW_GENERIC; // Only using SDL_SetWindowBrightness to determine if hardware gamma is supported - glConfig.deviceSupportsGamma = SDL_SetWindowBrightness( SDL_window, 1.0f ) >= 0; - - if ( -1 == r_ignorehwgamma->integer) - glConfig.deviceSupportsGamma = 1; - - if ( 1 == r_ignorehwgamma->integer) - glConfig.deviceSupportsGamma = 0; + glConfig.deviceSupportsGamma = !r_ignorehwgamma->integer && + SDL_SetWindowBrightness( SDL_window, 1.0f ) >= 0; // get our config strings Q_strncpyz( glConfig.vendor_string, (char *) qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) ); |