[quake3-commits] r1704 - trunk/code/sdl
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Oct 25 17:48:49 EDT 2009
Author: tma
Date: 2009-10-25 17:48:48 -0400 (Sun, 25 Oct 2009)
New Revision: 1704
Modified:
trunk/code/sdl/sdl_glimp.c
Log:
* (bug #4316) Hack to work around suspected driver bug (Lakitu7)
Modified: trunk/code/sdl/sdl_glimp.c
===================================================================
--- trunk/code/sdl/sdl_glimp.c 2009-10-25 19:51:32 UTC (rev 1703)
+++ trunk/code/sdl/sdl_glimp.c 2009-10-25 21:48:48 UTC (rev 1704)
@@ -717,8 +717,14 @@
// 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 ) );
Q_strncpyz( glConfig.renderer_string, (char *) qglGetString (GL_RENDERER), sizeof( glConfig.renderer_string ) );
More information about the quake3-commits
mailing list