Added log message when sdl2 init fails
This commit is contained in:
parent
e5a2cb2604
commit
b2354d68c0
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user