From d3e4081ba8961e9d0eec4927b4a83b084dc02723 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 04:31:27 +0200 Subject: SDL_SetWindowGammaRamp check --- src/sdl/sdl_gamma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sdl') 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" ); + } } -- cgit