Changed the SDL video initialization function from SDL_Init to SDL_InitSubSystem

This commit is contained in:
Leon Styhre 2022-06-09 17:16:43 +02:00
parent 63bf26fcab
commit d217a3315a

View file

@ -65,7 +65,7 @@ bool Renderer::createWindow()
{
LOG(LogInfo) << "Creating window...";
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) {
LOG(LogError) << "Couldn't initialize SDL: " << SDL_GetError();
return false;
}