summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-11 16:08:01 -0600
committerBrian Paul <brianp@vmware.com>2009-05-11 16:08:01 -0600
commitf5cf181c65293fd9097f63192c09f44b9c82c633 (patch)
treeb969f888bf9eee8391d52bd277bbfeee282ac01c
parent2223615e0a897434b41f86d22c41cb5dc9f8d67a (diff)
trivial: destroy window upon exit
-rw-r--r--progs/trivial/tri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c
index d44cb6a9fe..cac3fcb7d9 100644
--- a/progs/trivial/tri.c
+++ b/progs/trivial/tri.c
@@ -60,6 +60,7 @@ static void Key(unsigned char key, int x, int y)
{
switch (key) {
case 27:
+ glutDestroyWindow(win);
exit(0);
default:
glutPostRedisplay();