Added log message when sdl2 init fails

This commit is contained in:
Bob Polis 2023-02-13 11:41:24 +01:00
parent e5a2cb2604
commit b2354d68c0

View File

@ -4,7 +4,9 @@
using namespace sc::gui;
SDLWrapper::SDLWrapper() {
SDL_Init(SDL_INIT_VIDEO);
if (SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("SDL_Init(): %s", SDL_GetError());
}
}
SDLWrapper::~SDLWrapper() {