summaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-26 15:45:21 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:02:32 +0100
commit12c86c4d96fb34625ac439458055a919956e3f7c (patch)
tree34b38dd0a38c3b7a2efc702a869718825409e0e9 /src/sdl
parentfc530362b74857609f1a73bbe2339f0609b04a8f (diff)
Added SDL_GetError()
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/sdl_gamma.c2
1 files changed, 1 insertions, 1 deletions
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() );
}
}