summaryrefslogtreecommitdiff
path: root/progs/demos/vao_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos/vao_demo.c')
-rw-r--r--progs/demos/vao_demo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/demos/vao_demo.c b/progs/demos/vao_demo.c
index ce416712fe..206e06fc6c 100644
--- 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;