diff options
author | Pan7 <panter@gmx.net> | 2015-07-26 04:31:27 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:02:32 +0100 |
commit | d3e4081ba8961e9d0eec4927b4a83b084dc02723 (patch) | |
tree | 7f3ac2f11c70377e71bdfaea13a6f9ca4879a374 /src/sdl | |
parent | f3d9ff7b490b6f3ce355e3f4441f7758340a096b (diff) |
SDL_SetWindowGammaRamp check
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/sdl_gamma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sdl/sdl_gamma.c b/src/sdl/sdl_gamma.c index 0029db18..2f807055 100644 --- a/src/sdl/sdl_gamma.c +++ b/src/sdl/sdl_gamma.c @@ -89,6 +89,9 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned } } - SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]); + if (SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]) < 0) + { + ri.Printf( PRINT_DEVELOPER, "SDL_SetWindowGammaRamp() failed.\n" ); + } } |