projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90ce846
)
mesa: call glutDestroyWindow()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 20 May 2008 19:38:59 +0000
(13:38 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 20 May 2008 19:49:18 +0000
(13:49 -0600)
progs/demos/drawpix.c
patch
|
blob
|
history
diff --git
a/progs/demos/drawpix.c
b/progs/demos/drawpix.c
index d2f57486744ecb5b98b80da050b0cd270983542f..5490bcc6355fd486fa451fce9e70f9105837da06 100644
(file)
--- a/
progs/demos/drawpix.c
+++ b/
progs/demos/drawpix.c
@@
-28,6
+28,7
@@
static GLfloat Zpos = -1.0;
static float Xzoom, Yzoom;
static GLboolean DrawFront = GL_FALSE;
static GLboolean Dither = GL_TRUE;
+static int win = 0;
static void Reset( void )
@@
-215,6
+216,7
@@
static void Key( unsigned char key, int x, int y )
printf("glDrawBuffer(%s)\n", DrawFront ? "GL_FRONT" : "GL_BACK");
break;
case 27:
+ glutDestroyWindow(win);
exit(0);
break;
}
@@
-343,7
+345,7
@@
int main( int argc, char *argv[] )
else
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE);
- glutCreateWindow(argv[0]);
+
win =
glutCreateWindow(argv[0]);
Init(ciMode, filename);
Usage();