Skip to content

Commit

Permalink
Fix: [SDL2] Display why SDL_CreateWindow() failed in case it does
Browse files Browse the repository at this point in the history
All SDL_NNN errors print SDL_GetError, except for this one place.
  • Loading branch information
TrueBrain authored and pull[bot] committed May 8, 2021
1 parent dd02f05 commit 1003048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/sdl2_v.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1003048

Please sign in to comment.