1
0
Fork 0

Fix: [SDL2] Display why SDL_CreateWindow() failed in case it does

All SDL_NNN errors print SDL_GetError, except for this one place.
pull/8622/head
Patric Stout 2021-01-24 11:56:26 +01:00 committed by Patric Stout
parent 19345908cb
commit eb80fefd1d
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ bool VideoDriver_SDL::CreateMainWindow(uint w, uint h)
flags);
if (_sdl_window == nullptr) {
DEBUG(driver, 0, "SDL2: Couldn't allocate a window to draw on");
DEBUG(driver, 0, "SDL2: Couldn't allocate a window to draw on: %s", SDL_GetError());
return false;
}