diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-11 16:08:01 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-11 16:08:01 -0600 |
commit | f5cf181c65293fd9097f63192c09f44b9c82c633 (patch) | |
tree | b969f888bf9eee8391d52bd277bbfeee282ac01c /progs/trivial | |
parent | 2223615e0a897434b41f86d22c41cb5dc9f8d67a (diff) |
trivial: destroy window upon exit
Diffstat (limited to 'progs/trivial')
-rw-r--r-- | progs/trivial/tri.c | 1 |
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(); |