From a6019a4b6c867eeb6294fe36bdb58044d1399ee3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 29 Oct 2011 21:40:26 +0100 Subject: [PATCH] Ensure the app terminates. glutDestroyWindow apparently does not guarantee that on all platforms. --- apps/gl/tri.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/gl/tri.c b/apps/gl/tri.c index f5a8be8..ea3b595 100644 --- a/apps/gl/tri.c +++ b/apps/gl/tri.c @@ -77,6 +77,8 @@ static void Draw(void) } glutDestroyWindow(win); + + exit(0); } int main(int argc, char **argv) -- 2.43.0