From 56cfa4de9150514af46d040c3cdb24def301b3a1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 7 May 2009 14:15:24 -0600 Subject: [PATCH] demos: delete vertex array objects upon exit --- progs/demos/vao_demo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/progs/demos/vao_demo.c b/progs/demos/vao_demo.c index ce416712fe2..206e06fc6c7 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; -- 2.30.2