summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sdl/sdl_glimp.c9
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 ) );