fix: Delete splash textures before destroying splash screen

This commit is contained in:
WerWolv
2025-01-27 19:08:01 +01:00
parent ef2373e8c0
commit 098da20761
3 changed files with 23 additions and 15 deletions

View File

@@ -65,6 +65,10 @@ namespace hex::init {
}
WindowSplash::~WindowSplash() {
// Clear textures before deinitializing glfw
m_splashBackgroundTexture.reset();
m_splashTextTexture.reset();
this->exitImGui();
this->exitGLFW();
}
@@ -584,7 +588,6 @@ namespace hex::init {
void WindowSplash::exitGLFW() const {
glfwDestroyWindow(m_window);
glfwTerminate();
}
void WindowSplash::exitImGui() const {