projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1030bf0
)
demos: delete vertex array objects upon exit
author
Brian Paul
<brianp@vmware.com>
Thu, 7 May 2009 20:15:24 +0000
(14:15 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 7 May 2009 20:34:09 +0000
(14:34 -0600)
progs/demos/vao_demo.c
patch
|
blob
|
history
diff --git
a/progs/demos/vao_demo.c
b/progs/demos/vao_demo.c
index ce416712fe264e1274cdd755cdc4ef80a83de88b..206e06fc6c7141d255e3c06c07b7551985893e2c 100644
(file)
--- a/
progs/demos/vao_demo.c
+++ b/
progs/demos/vao_demo.c
@@
-260,6
+260,8
@@
static void Key( unsigned char key, int x, int y )
(void) y;
switch (key) {
case 27:
+ (*delete_vertex_arrays)( 1, & cube_array_obj );
+ (*delete_vertex_arrays)( 1, & oct_array_obj );
glutDestroyWindow(Win);
exit(0);
break;