mirror of
https://github.com/UberGames/ioef.git
synced 2024-12-01 00:21:19 +00:00
Fix wacky patch for r_ignorehwgamma
This commit is contained in:
parent
aaea838d39
commit
9b8711d2e1
1 changed files with 2 additions and 7 deletions
|
@ -770,13 +770,8 @@ success:
|
||||||
glConfig.hardwareType = GLHW_GENERIC;
|
glConfig.hardwareType = GLHW_GENERIC;
|
||||||
|
|
||||||
// Only using SDL_SetWindowBrightness to determine if hardware gamma is supported
|
// Only using SDL_SetWindowBrightness to determine if hardware gamma is supported
|
||||||
glConfig.deviceSupportsGamma = SDL_SetWindowBrightness( SDL_window, 1.0f ) >= 0;
|
glConfig.deviceSupportsGamma = !r_ignorehwgamma->integer &&
|
||||||
|
SDL_SetWindowBrightness( SDL_window, 1.0f ) >= 0;
|
||||||
if ( -1 == r_ignorehwgamma->integer)
|
|
||||||
glConfig.deviceSupportsGamma = 1;
|
|
||||||
|
|
||||||
if ( 1 == r_ignorehwgamma->integer)
|
|
||||||
glConfig.deviceSupportsGamma = 0;
|
|
||||||
|
|
||||||
// get our config strings
|
// get our config strings
|
||||||
Q_strncpyz( glConfig.vendor_string, (char *) qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) );
|
Q_strncpyz( glConfig.vendor_string, (char *) qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) );
|
||||||
|
|
Loading…
Reference in a new issue