diff options
author | Brian <[email protected]> | 2007-03-06 16:33:00 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-06 16:33:00 -0700 |
commit | 2282d815360c2087dd080c794084bea65e6da358 (patch) | |
tree | 1e8707ee8e1503205aa5323b9decb6fd054e4bed /progs/tests/fbotest1.c | |
parent | 0af1c6b5d1e2a5560f92b93b5429f70b49449ddb (diff) |
destroy window during cleanup
Diffstat (limited to 'progs/tests/fbotest1.c')
-rw-r--r-- | progs/tests/fbotest1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/tests/fbotest1.c b/progs/tests/fbotest1.c index ed72ab16dd8..8f4569ff3b4 100644 --- a/progs/tests/fbotest1.c +++ b/progs/tests/fbotest1.c @@ -13,6 +13,7 @@ #include <math.h> #include <GL/glut.h> +static int Win; static int Width = 400, Height = 400; static GLuint MyFB, MyRB; @@ -99,6 +100,7 @@ CleanUp(void) glDeleteRenderbuffersEXT(1, &MyRB); assert(!glIsFramebufferEXT(MyFB)); assert(!glIsRenderbufferEXT(MyRB)); + glutDestroyWindow(Win); exit(0); } @@ -194,7 +196,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 ); |