mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
demos: delete vertex array objects upon exit
This commit is contained in:
parent
1030bf0ded
commit
56cfa4de91
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue