diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-07 14:15:24 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-07 14:34:09 -0600 |
commit | 56cfa4de9150514af46d040c3cdb24def301b3a1 (patch) | |
tree | 93d0bb746a283207e89294541ad451139ef157d4 /progs/demos | |
parent | 1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a (diff) | |
download | external_mesa3d-56cfa4de9150514af46d040c3cdb24def301b3a1.zip external_mesa3d-56cfa4de9150514af46d040c3cdb24def301b3a1.tar.gz external_mesa3d-56cfa4de9150514af46d040c3cdb24def301b3a1.tar.bz2 |
demos: delete vertex array objects upon exit
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/vao_demo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/demos/vao_demo.c b/progs/demos/vao_demo.c index ce41671..206e06f 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; |