summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-20 13:38:59 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-20 13:49:18 -0600
commitd7cf6b29785de51ecd828477ca3f5e2664d555e7 (patch)
tree1f9c35c364981cd21069ba788e41af707855f522 /progs
parent90ce8467a8cb2b819a44d00e4a9d315f8aa43b7c (diff)
downloadexternal_mesa3d-d7cf6b29785de51ecd828477ca3f5e2664d555e7.zip
external_mesa3d-d7cf6b29785de51ecd828477ca3f5e2664d555e7.tar.gz
external_mesa3d-d7cf6b29785de51ecd828477ca3f5e2664d555e7.tar.bz2
mesa: call glutDestroyWindow()
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/drawpix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/demos/drawpix.c b/progs/demos/drawpix.c
index d2f5748..5490bcc 100644
--- 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();