trivial: destroy window upon exit
This commit is contained in:
@@ -60,6 +60,7 @@ static void Key(unsigned char key, int x, int y)
|
||||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
glutDestroyWindow(win);
|
||||
exit(0);
|
||||
default:
|
||||
glutPostRedisplay();
|
||||
|
||||
Reference in New Issue
Block a user