From 4b176297e21f9cc6ee8f9bda0cf644ab9e5632c0 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 15:41:41 +0200 Subject: [PATCH] Added SDL_GetError() --- code/sdl/sdl_glimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index 37bd976a..ce6b22d3 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -138,14 +138,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; }