aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-07 06:33:07 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-07 06:33:07 +0100
commit29627a93c68b9f3927ee9d1097ed3266777b6a0b (patch)
tree9f1b20f8babc57dde0c59324756ea5ed5a3f31a0 /tests
parent0a22a501932e4c462fc904bcf5da541a226e4308 (diff)
Fix exit being called when closing window, respond to wm ping, add is_open function to window
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp2
1 files changed, 1 insertions, 1 deletions
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)) {
}