projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tgsi: added tgsi_full_instruction::Flags field
[mesa.git]
/
progs
/
demos
/
tunnel.c
diff --git
a/progs/demos/tunnel.c
b/progs/demos/tunnel.c
index 6a240580e8aba70ffc990a29d543a212766732ad..6981da32988db505d92f2b112a6423c7418a4b50 100644
(file)
--- a/
progs/demos/tunnel.c
+++ b/
progs/demos/tunnel.c
@@
-202,11
+202,19
@@
special(int k, int x, int y)
}
}
+static void
+cleanup(void)
+{
+ glDeleteTextures(1, &t1id);
+ glDeleteTextures(1, &t2id);
+}
+
static void
key(unsigned char k, int x, int y)
{
switch (k) {
case 27:
+ cleanup();
exit(0);
break;
@@
-531,5
+539,6
@@
main(int ac, char **av)
glutMainLoop();
+ cleanup();
return 0;
}