diff options
author | Nian Wu <nian.wu@intel.com> | 2007-03-07 16:01:36 -0500 |
---|---|---|
committer | Nian Wu <nian.wu@intel.com> | 2007-03-07 16:01:36 -0500 |
commit | 1e055089a37bca8bc5e1cec37d5559fcdb0cf21f (patch) | |
tree | 9838f0ffaca0e0289132b66646182010316f5873 /progs/tests/fbotexture.c | |
parent | 87c9ad6fd57a60c29dc83c8a538e70a93d125e25 (diff) | |
parent | 2282d815360c2087dd080c794084bea65e6da358 (diff) |
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
Diffstat (limited to 'progs/tests/fbotexture.c')
-rw-r--r-- | progs/tests/fbotexture.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/tests/fbotexture.c b/progs/tests/fbotexture.c index 13a29db3f3..aa9f617122 100644 --- a/progs/tests/fbotexture.c +++ b/progs/tests/fbotexture.c @@ -23,6 +23,7 @@ #define DRAW 1 +static int Win = 0; static int Width = 400, Height = 400; static GLenum TexTarget = GL_TEXTURE_2D; /*GL_TEXTURE_RECTANGLE_ARB;*/ @@ -232,6 +233,8 @@ CleanUp(void) glDeleteTextures(1, &TexObj); + glutDestroyWindow(Win); + exit(0); } @@ -392,7 +395,7 @@ main(int argc, char *argv[]) glutInitWindowPosition(0, 0); glutInitWindowSize(Width, Height); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE); - glutCreateWindow(argv[0]); + Win = glutCreateWindow(argv[0]); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutDisplayFunc(Display); |