From 19c4048315ce54dd20303a10c88e3b2f5fdfceb1 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 15:45:21 +0200 Subject: [PATCH] Added SDL_GetError() --- code/sdl/sdl_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdl/sdl_gamma.c b/code/sdl/sdl_gamma.c index ce8bf28b..a1e0cb5b 100644 --- a/code/sdl/sdl_gamma.c +++ b/code/sdl/sdl_gamma.c @@ -90,7 +90,7 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned if (SDL_SetWindowGammaRamp(SDL_window, table[0], table[1], table[2]) < 0) { - ri.Printf( PRINT_DEVELOPER, "SDL_SetWindowGammaRamp() failed.\n" ); + ri.Printf( PRINT_DEVELOPER, "SDL_SetWindowGammaRamp() failed: %s\n", SDL_GetError() ); } }