summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-20 15:12:50 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-20 15:12:50 -0600
commit8f792a0707446a7b020e6d47a5fff310a36ca81d (patch)
tree8a051f4925d955be98a7d6a8fa4ac6a34c71d5bf /progs
parentcf1ae676ec7cbf3a8595d41fb6b5128ff142b402 (diff)
parent7899ecdd6502a323b052f9ad4acd23cbb9ba88db (diff)
Merge branch 'gallium-0.1' into gallium-tex-surfaces
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/lodbias.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/demos/lodbias.c b/progs/demos/lodbias.c
index c5a2a1b457..30b1ed13d5 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 );