From eb80fefd1db73dcc2cfd9439749dfaea42dee89f Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 24 Jan 2021 11:56:26 +0100 Subject: Fix: [SDL2] Display why SDL_CreateWindow() failed in case it does All SDL_NNN errors print SDL_GetError, except for this one place. --- src/video/sdl2_v.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp index e4518d5b3..61edea6e0 100644 --- a/src/video/sdl2_v.cpp +++ b/src/video/sdl2_v.cpp @@ -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; } -- cgit v1.2.3-70-g09d2