Add extra failure error messages

This commit is contained in:
Clownacy 2020-04-09 12:54:28 +01:00
parent 4bd6293b69
commit 0582fa93d1
2 changed files with 8 additions and 2 deletions

View file

@ -154,7 +154,9 @@ BOOL Backend_Init(void)
{
if (glfwInit() == GL_TRUE)
return TRUE;
else
Backend_ShowMessageBox("Fatal error", "Could not initialise GLFW3");
return FALSE;
}

View file

@ -49,9 +49,13 @@ BOOL Backend_Init(void)
return TRUE;
}
Backend_ShowMessageBox("Fatal error", "Could not initialise SDL2 video subsystem");
SDL_Quit();
}
Backend_ShowMessageBox("Fatal error", "Could not initialise SDL2");
return FALSE;
}