From 29627a93c68b9f3927ee9d1097ed3266777b6a0b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 7 Nov 2021 06:33:07 +0100 Subject: Fix exit being called when closing window, respond to wm ping, add is_open function to window --- tests/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/main.cpp b/tests/main.cpp index 98fa34c..25ef012 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -98,7 +98,7 @@ int main(int argc, char **argv) { delegate.shader_program = &shader; mgl::Event event; - while(true) { + while(window.is_open()) { if(window.poll_event(event)) { } -- cgit v1.2.3