projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d14440
)
mesa: destroy window upon exit
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 1 Apr 2008 20:56:10 +0000
(14:56 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 1 Apr 2008 20:56:10 +0000
(14:56 -0600)
progs/demos/texcyl.c
patch
|
blob
|
history
diff --git
a/progs/demos/texcyl.c
b/progs/demos/texcyl.c
index c04d5004e37572f6ee2355ef0b220db2f442765e..e3b0303975911fd6d856ff9f4a67335a267c1c83 100644
(file)
--- 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);