From 12c86c4d96fb34625ac439458055a919956e3f7c Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 15:45:21 +0200 Subject: Added SDL_GetError() --- src/sdl/sdl_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sdl') diff --git a/src/sdl/sdl_gamma.c b/src/sdl/sdl_gamma.c index 2f807055..7e030683 100644 --- a/src/sdl/sdl_gamma.c +++ b/src/sdl/sdl_gamma.c @@ -91,7 +91,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() ); } } -- cgit