summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 15:52:04 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 15:52:04 -0600
commit547e487df2a25dc92dc303cb59ed460e2d95a913 (patch)
tree177d78dffc10514a5e1582dc9ec7527835c7dce0 /progs
parenteb9efc6ad5544b8c643f81c03fcc09438aa0316c (diff)
mesa: call glutDestroyWindow() on exit
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/tunnel2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/demos/tunnel2.c b/progs/demos/tunnel2.c
index 75a199af5d..f4171a8346 100644
--- a/progs/demos/tunnel2.c
+++ b/progs/demos/tunnel2.c
@@ -205,6 +205,8 @@ key(unsigned char k, int x, int y)
{
switch (k) {
case 27:
+ glutDestroyWindow(channel[0]);
+ glutDestroyWindow(channel[1]);
exit(0);
break;