demos: delete vertex array objects upon exit
authorBrian Paul <brianp@vmware.com>
Thu, 7 May 2009 20:15:24 +0000 (14:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 7 May 2009 20:34:09 +0000 (14:34 -0600)
progs/demos/vao_demo.c

index ce416712fe264e1274cdd755cdc4ef80a83de88b..206e06fc6c7141d255e3c06c07b7551985893e2c 100644 (file)
@@ -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;