impr: Hide window immediately after render loop finishes

This commit is contained in:
WerWolv 2024-02-09 19:42:47 +01:00
parent ebe0276141
commit a5f6756659
1 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,10 @@ namespace hex {
m_lastFrameTime = glfwGetTime() - m_lastStartFrameTime; m_lastFrameTime = glfwGetTime() - m_lastStartFrameTime;
} }
// Hide the window as soon as the render loop exits to make the window
// disappear as soon as it's closed
glfwHideWindow(m_window);
} }
void Window::frameBegin() { void Window::frameBegin() {