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,8 +154,10 @@ BOOL Backend_Init(void)
{ {
if (glfwInit() == GL_TRUE) if (glfwInit() == GL_TRUE)
return TRUE; return TRUE;
else
return FALSE; Backend_ShowMessageBox("Fatal error", "Could not initialise GLFW3");
return FALSE;
} }
void Backend_Deinit(void) void Backend_Deinit(void)

View file

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