mesa: call glutDestroyWindow() on exit
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 21:52:04 +0000 (15:52 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Jul 2008 21:52:04 +0000 (15:52 -0600)
progs/demos/tunnel2.c

index 75a199af5d3e1977c8783afd75997b80a2eca4f7..f4171a8346d60c5b9414e7c3806389e6d3298dfe 100644 (file)
@@ -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;