diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-25 21:48:48 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-25 21:48:48 +0000 |
commit | 51e4f7930ae5e30f3d7a4a229c479afcab53398a (patch) | |
tree | 24dd6a59295b7528ff926e8f0bf9b622255bbb19 /code | |
parent | 1606b23d3b3517aaa708fc2ee6e69cc1e9af6aaf (diff) | |
download | ioquake3-aero-51e4f7930ae5e30f3d7a4a229c479afcab53398a.tar.gz ioquake3-aero-51e4f7930ae5e30f3d7a4a229c479afcab53398a.zip |
* (bug #4316) Hack to work around suspected driver bug (Lakitu7)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1704 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/sdl/sdl_glimp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index 25d1ca4..0039497 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -717,7 +717,13 @@ success: // This values force the UI to disable driver selection glConfig.driverType = GLDRV_ICD; glConfig.hardwareType = GLHW_GENERIC; - glConfig.deviceSupportsGamma = !!( SDL_SetGamma( 1.0f, 1.0f, 1.0f ) >= 0 ); + glConfig.deviceSupportsGamma = SDL_SetGamma( 1.0f, 1.0f, 1.0f ) >= 0; + + // Mysteriously, if you use an NVidia graphics card and multiple monitors, + // SDL_SetGamma will incorrectly return false... the first time; ask + // again and you get the correct answer. This is a suspected driver bug, see + // http://bugzilla.icculus.org/show_bug.cgi?id=4316 + glConfig.deviceSupportsGamma = SDL_SetGamma( 1.0f, 1.0f, 1.0f ) >= 0; // get our config strings Q_strncpyz( glConfig.vendor_string, (char *) qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) ); |