projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45cc35e
)
mesa: call glutDestroyWindow (help find mem leaks)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 24 Mar 2008 23:20:52 +0000
(17:20 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 24 Mar 2008 23:21:18 +0000
(17:21 -0600)
progs/demos/texenv.c
patch
|
blob
|
history
diff --git
a/progs/demos/texenv.c
b/progs/demos/texenv.c
index 590867b4945a88514a58c2c680322b0b83a00224..c5a8b13f35fbcc692988daadaf8f52b4f55f4bb0 100644
(file)
--- a/
progs/demos/texenv.c
+++ b/
progs/demos/texenv.c
@@
-76,6
+76,8
@@
int textureWidth = 64;
int textureHeight = 64;
int winWidth = 580, winHeight = 720;
+static int Win;
+
struct formatInfo {
GLenum baseFormat;
@@
-288,6
+290,7
@@
static void keyboard( unsigned char c, int x, int y )
displayLevelInfo = !displayLevelInfo;
break;
case 27: /* Escape key should force exit. */
+ glutDestroyWindow(Win);
exit(0);
break;
default:
@@
-785,7
+788,7
@@
int main( int argc, char *argv[] )
glutInitWindowSize( winWidth, winHeight );
glutInitWindowPosition( 0, 0 );
- glutCreateWindow( "Texture Environment Test" );
+
Win =
glutCreateWindow( "Texture Environment Test" );
initialize();
instructions();