summaryrefslogtreecommitdiff
path: root/progs/demos/texcyl.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-04-02 13:29:17 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-04-02 13:29:17 +1000
commit81f34e222a4c434e7e5324ed589c76260025ab59 (patch)
tree51abec359a7a9e3d06ee7c1dd289545172ae77af /progs/demos/texcyl.c
parent901700888e5b4ec4dbec6ac924b542c780edaf52 (diff)
parent7f40115a52ce8f9b5883bd9241707b9e603db0e3 (diff)
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Diffstat (limited to 'progs/demos/texcyl.c')
-rw-r--r--progs/demos/texcyl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/demos/texcyl.c b/progs/demos/texcyl.c
index c04d5004e3..e3b0303975 100644
--- a/progs/demos/texcyl.c
+++ b/progs/demos/texcyl.c
@@ -27,6 +27,8 @@
#define LINEAR_FILTER 21
#define QUIT 100
+static GLint Win = -1;
+
static GLuint CylinderObj = 0;
static GLboolean Animate = GL_TRUE;
@@ -159,6 +161,7 @@ static void Key( unsigned char key, int x, int y )
glutIdleFunc(NULL);
break;
case 27:
+ glutDestroyWindow(Win);
exit(0);
break;
}
@@ -263,7 +266,7 @@ int main( int argc, char *argv[] )
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
- glutCreateWindow(argv[0] );
+ Win = glutCreateWindow(argv[0] );
Init(argc, argv);