mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-19 15:40:53 +00:00
Added SDL_GetError()
This commit is contained in:
parent
9694e93fd2
commit
4b176297e2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue