aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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)) {
}