mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
trivial: destroy window upon exit
This commit is contained in:
parent
2223615e0a
commit
f5cf181c65
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ static void Key(unsigned char key, int x, int y)
|
|||
{
|
||||
switch (key) {
|
||||
case 27:
|
||||
glutDestroyWindow(win);
|
||||
exit(0);
|
||||
default:
|
||||
glutPostRedisplay();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue