glfwPollEvents automatically set the close flag which causes GLFW to close the window

Thank you for the insight!
Indeed, it was the WM_QUIT message that was still lingering in the queue. After I used PeekMessage() to ensure that WM_QUIT was removed before creating another window, everything worked.

Thank you again for the help :slight_smile: