Add extra failure error messages
This commit is contained in:
parent
4bd6293b69
commit
0582fa93d1
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue