summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-09-17 14:13:43 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-09-17 14:13:43 +0000
commit50cd089a7f07042b3ae0fdc163d39c0fd4ee052e (patch)
tree7caedb4c231b0b8f40ad38da8165dbeb02e7ec14
parent7e22bad6da4bbfc2ccd52c80c43392eaf5e9f2c5 (diff)
remove GLint t, pass target to _mesa_init_teximage_fields()
-rw-r--r--src/mesa/main/texstore.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 37a24a9be9d..701b8a4452e 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1,4 +1,4 @@
-/* $Id: texstore.c,v 1.34.2.6 2002/09/16 20:29:22 brianp Exp $ */
+/* $Id: texstore.c,v 1.34.2.7 2002/09/17 14:13:43 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1669,7 +1669,6 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
GLint srcWidth, srcHeight, srcDepth;
GLint dstWidth, dstHeight, dstDepth;
GLint border, bytesPerTexel;
- GLint t;
srcImage = texObj->Image[level];
ASSERT(srcImage);
@@ -1722,7 +1721,7 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
MESA_PBUFFER_FREE(dstImage->Data);
/* initialize new image */
- _mesa_init_teximage_fields(ctx, t, dstImage, dstWidth, dstHeight,
+ _mesa_init_teximage_fields(ctx, target, dstImage, dstWidth, dstHeight,
dstDepth, border, srcImage->Format);
dstImage->DriverData = NULL;
dstImage->TexFormat = srcImage->TexFormat;