summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-11 16:08:01 -0600
committerBrian Paul <brianp@vmware.com>2009-05-11 16:08:01 -0600
commitf5cf181c65293fd9097f63192c09f44b9c82c633 (patch)
treeb969f888bf9eee8391d52bd277bbfeee282ac01c /progs
parent2223615e0a897434b41f86d22c41cb5dc9f8d67a (diff)
downloadexternal_mesa3d-f5cf181c65293fd9097f63192c09f44b9c82c633.zip
external_mesa3d-f5cf181c65293fd9097f63192c09f44b9c82c633.tar.gz
external_mesa3d-f5cf181c65293fd9097f63192c09f44b9c82c633.tar.bz2
trivial: destroy window upon exit
Diffstat (limited to 'progs')
-rw-r--r--progs/trivial/tri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c
index d44cb6a..cac3fcb 100644
--- a/progs/trivial/tri.c
+++ b/progs/trivial/tri.c
@@ -60,6 +60,7 @@ static void Key(unsigned char key, int x, int y)
{
switch (key) {
case 27:
+ glutDestroyWindow(win);
exit(0);
default:
glutPostRedisplay();