trivial: destroy window upon exit
authorBrian Paul <brianp@vmware.com>
Mon, 11 May 2009 22:08:01 +0000 (16:08 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 11 May 2009 22:08:01 +0000 (16:08 -0600)
progs/trivial/tri.c

index d44cb6a9fe312e146b54924468c9b818873d98c1..cac3fcb7d9c5d2042a7488807135f51d9b80d6b7 100644 (file)
@@ -60,6 +60,7 @@ static void Key(unsigned char key, int x, int y)
 {
    switch (key) {
       case 27:
+         glutDestroyWindow(win);
          exit(0);
       default:
          glutPostRedisplay();