diff options
author | Pan7 <panter@gmx.net> | 2015-07-26 15:41:41 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:02:32 +0100 |
commit | fc530362b74857609f1a73bbe2339f0609b04a8f (patch) | |
tree | e88994e329a0f43bc4c11d97fee91b18f3eb0f26 /src/sdl | |
parent | 969f68f3c17199073643a138f12f9b6dae0717bb (diff) |
Added SDL_GetError()
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/sdl_glimp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c index d7536794..e4c816c0 100644 --- a/src/sdl/sdl_glimp.c +++ b/src/sdl/sdl_glimp.c @@ -143,14 +143,14 @@ static void GLimp_DetectAvailableModes(void) int display = SDL_GetWindowDisplayIndex( SDL_window ); if( display < 0 ) { - ri.Printf( PRINT_WARNING, "Couldn't get window display index, no resolutions detected\n" ); + ri.Printf( PRINT_WARNING, "Couldn't get window display index, no resolutions detected: %s\n", SDL_GetError() ); return; } numSDLModes = SDL_GetNumDisplayModes( display ); if( SDL_GetWindowDisplayMode( SDL_window, &windowMode ) < 0 || numSDLModes <= 0 ) { - ri.Printf( PRINT_WARNING, "Couldn't get window display mode, no resolutions detected\n" ); + ri.Printf( PRINT_WARNING, "Couldn't get window display mode, no resolutions detected: %s\n", SDL_GetError() ); return; } |