ref: 0582fa93d142a8929030c61c6f52c8837a6ca8a6
parent: 4bd6293b69dd7c6c71629eaa2e1a80caca029548
author: Clownacy <[email protected]>
date: Thu Apr 9 08:54:28 EDT 2020
Add extra failure error messages
--- a/src/Backends/GLFW3/Misc.cpp
+++ b/src/Backends/GLFW3/Misc.cpp
@@ -154,8 +154,10 @@
{
if (glfwInit() == GL_TRUE)
return TRUE;
- else
- return FALSE;
+
+ Backend_ShowMessageBox("Fatal error", "Could not initialise GLFW3");
+
+ return FALSE;
}
void Backend_Deinit(void)
--- a/src/Backends/SDL2/Misc.cpp
+++ b/src/Backends/SDL2/Misc.cpp
@@ -49,8 +49,12 @@
return TRUE;
}
+ Backend_ShowMessageBox("Fatal error", "Could not initialise SDL2 video subsystem");
+
SDL_Quit();
}
+
+ Backend_ShowMessageBox("Fatal error", "Could not initialise SDL2");
return FALSE;
}