respect should_exit on linux as well
This commit is contained in:
parent
793b69d9d9
commit
73777e83ab
@ -452,7 +452,7 @@ int main(int, char**)
|
|||||||
init();
|
init();
|
||||||
|
|
||||||
// Main loop
|
// Main loop
|
||||||
while (!glfwWindowShouldClose(window))
|
while (!glfwWindowShouldClose(window) && !should_exit)
|
||||||
{
|
{
|
||||||
// Poll and handle events (inputs, window resize, etc.)
|
// 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.
|
// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user