From 6fda763989f9102399407098773de227abba822c Mon Sep 17 00:00:00 2001 From: Brian Date: Sun, 25 Mar 2007 10:25:29 -0600 Subject: destroy window on exit --- progs/tests/fbotest2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/progs/tests/fbotest2.c b/progs/tests/fbotest2.c index c3117b0f767..18f28972b6e 100644 --- a/progs/tests/fbotest2.c +++ b/progs/tests/fbotest2.c @@ -13,6 +13,7 @@ #include #include +static int Win = 0; static int Width = 400, Height = 400; static GLuint MyFB, ColorRb, DepthRb; static GLboolean Animate = GL_TRUE; @@ -110,6 +111,7 @@ CleanUp(void) assert(!glIsFramebufferEXT(MyFB)); assert(!glIsRenderbufferEXT(ColorRb)); assert(!glIsRenderbufferEXT(DepthRb)); + glutDestroyWindow(Win); exit(0); } @@ -187,7 +189,7 @@ main( int argc, char *argv[] ) glutInitWindowPosition( 0, 0 ); glutInitWindowSize(Width, Height); glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); - glutCreateWindow(argv[0]); + Win = glutCreateWindow(argv[0]); glutReshapeFunc( Reshape ); glutKeyboardFunc( Key ); glutDisplayFunc( Display ); -- cgit v1.2.3