projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d249ca
)
destroy window on exit
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 18 Sep 2008 21:36:17 +0000
(15:36 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 18 Sep 2008 21:37:13 +0000
(15:37 -0600)
progs/tests/mipmap_view.c
patch
|
blob
|
history
diff --git
a/progs/tests/mipmap_view.c
b/progs/tests/mipmap_view.c
index 117e201718479595f804ab72654f0778946f77ac..54607b89398daf3a277a03f194b195d89e57d7c8 100644
(file)
--- a/
progs/tests/mipmap_view.c
+++ b/
progs/tests/mipmap_view.c
@@
-21,6
+21,8
@@
static int TexWidth = 256, TexHeight = 256;
static int WinWidth = 1044, WinHeight = 900;
static GLfloat Bias = 0.0;
static GLboolean ScaleQuads = GL_FALSE;
+static GLint Win = 0;
+
static void
@@
-145,6
+147,7
@@
Key(unsigned char key, int x, int y)
ScaleQuads = !ScaleQuads;
break;
case 27:
+ glutDestroyWindow(Win);
exit(0);
break;
}
@@
-238,7
+241,7
@@
main(int argc, char *argv[])
glutInitWindowPosition(0, 0);
glutInitWindowSize(WinWidth, WinHeight);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
- glutCreateWindow(argv[0]);
+
Win =
glutCreateWindow(argv[0]);
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Display);