trivial: destroy window upon exit

This commit is contained in:
Brian Paul
2009-05-11 16:08:01 -06:00
parent 2223615e0a
commit f5cf181c65
+1
View 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();