mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
* (bug #4316) Hack to work around suspected driver bug (Lakitu7)
This commit is contained in:
parent
0bdf52e2fb
commit
43d31f7c3a
1 changed files with 7 additions and 1 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue