diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-20 13:39:27 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-20 13:39:27 -0600 |
commit | 479174c398b5d15998852d7776900bf7ec0b1bcd (patch) | |
tree | f1f6bc52235e650c3a8fc178f1bcdd288e179e99 /progs | |
parent | 0a95f203fa6de3ed05c93e6788c7e2fdca170c94 (diff) | |
parent | a3f9ae4feada23a3b03b611bd34fac09410367c9 (diff) | |
download | external_mesa3d-479174c398b5d15998852d7776900bf7ec0b1bcd.zip external_mesa3d-479174c398b5d15998852d7776900bf7ec0b1bcd.tar.gz external_mesa3d-479174c398b5d15998852d7776900bf7ec0b1bcd.tar.bz2 |
Merge branch 'gallium-0.1' into gallium-tex-surfaces
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/drawpix.c | 4 |
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(); |