From: Brian Date: Sun, 25 Mar 2007 16:25:29 +0000 (-0600) Subject: destroy window on exit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fda763989f9102399407098773de227abba822c;p=mesa.git destroy window on exit --- 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 );