respect should_exit on linux as well

This commit is contained in:
Sven Balzer 2025-12-05 21:52:33 +01:00
parent 414e9bb330
commit a8f14b8f81

View File

@ -452,7 +452,7 @@ int main(int, char**)
init();
// Main loop
while (!glfwWindowShouldClose(window))
while (!glfwWindowShouldClose(window) && !should_exit)
{
// Poll and handle events (inputs, window resize, etc.)
// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.