mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
progs/demos: call glutDestroyWindow() in gloss.c
This commit is contained in:
parent
d7dbc66636
commit
288ea9770a
1 changed files with 3 additions and 1 deletions
|
|
@ -41,6 +41,7 @@
|
|||
/* for convolution */
|
||||
#define FILTER_SIZE 7
|
||||
|
||||
static GLint Win;
|
||||
static GLint WinWidth = 500, WinHeight = 500;
|
||||
static GLuint CylinderObj = 0;
|
||||
static GLuint TeapotObj = 0;
|
||||
|
|
@ -215,6 +216,7 @@ static void Key( unsigned char key, int x, int y )
|
|||
ToggleAnimate();
|
||||
break;
|
||||
case 27:
|
||||
glutDestroyWindow(Win);
|
||||
exit(0);
|
||||
break;
|
||||
}
|
||||
|
|
@ -439,7 +441,7 @@ int main( int argc, char *argv[] )
|
|||
glutInit( &argc, argv );
|
||||
glutInitWindowSize(WinWidth, WinHeight);
|
||||
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
|
||||
glutCreateWindow(argv[0] );
|
||||
Win = glutCreateWindow(argv[0] );
|
||||
glewInit();
|
||||
glutReshapeFunc( Reshape );
|
||||
glutKeyboardFunc( Key );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue