diff options
author | Brian Paul <[email protected]> | 2008-05-20 15:11:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-20 15:11:33 -0600 |
commit | 417719c0a6397decd11780a643cb546ddd8f78d4 (patch) | |
tree | ded45d7bd5d0006a10910d15c519676228f0cef9 /progs | |
parent | 69fd676240f91b1a42a355b768f86d397b899002 (diff) |
mesa: call glutDestroyWindow()
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/lodbias.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/demos/lodbias.c b/progs/demos/lodbias.c index c5a2a1b4573..30b1ed13d5f 100644 --- a/progs/demos/lodbias.c +++ b/progs/demos/lodbias.c @@ -42,7 +42,7 @@ static GLfloat Xrot = 0, Yrot = -30, Zrot = 0; static GLboolean Anim = GL_TRUE; static GLint Bias = 0, BiasStepSign = +1; /* ints avoid fp precision problem */ static GLint BiasMin = -400, BiasMax = 400; - +static int win = 0; static void @@ -172,6 +172,7 @@ static void Key( unsigned char key, int x, int y ) Bias = 100.0 * (key - '0'); break; case 27: + glutDestroyWindow(win); exit(0); break; } @@ -281,7 +282,7 @@ int main( int argc, char *argv[] ) glutInitWindowPosition( 0, 0 ); glutInitWindowSize( 350, 350 ); glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); - glutCreateWindow(argv[0]); + win = glutCreateWindow(argv[0]); glutReshapeFunc( Reshape ); glutKeyboardFunc( Key ); glutSpecialFunc( SpecialKey ); |