| 100 | } |
| 101 | |
| 102 | WindowSplash::~WindowSplash() { |
| 103 | if (m_window == nullptr) { |
| 104 | ImGui::DestroyContext(); |
| 105 | return; |
| 106 | } |
| 107 | // Clear textures before deinitializing glfw |
| 108 | m_splashBackgroundTexture.reset(); |
| 109 | |
| 110 | this->exitImGui(); |
| 111 | this->exitGLFW(); |
| 112 | } |
| 113 | |
| 114 | |
| 115 | static void centerWindow(GLFWwindow *window) { |