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

All SDL_NNN errors print SDL_GetError, except for this one place.
This commit is contained in:
Patric Stout 2021-01-24 11:56:26 +01:00 committed by Patric Stout
parent 19345908cb
commit eb80fefd1d

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;
}