summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-09-17 14:14:18 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-09-17 14:14:18 +0000
commite1cb2fb571ee47b59020db7627e554b7d227e454 (patch)
treec820f16d150616493edb7bb83fee8836f66f09e7 /src/mesa
parentd5bbbd41c431ad93c0867d5b0b234426d8570499 (diff)
remove GLint t, pass target to _mesa_init_teximage_fields()
Diffstat (limited to 'src/mesa')
-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 d8ea2ee353..c1fa760247 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1,4 +1,4 @@
-/* $Id: texstore.c,v 1.39 2002/09/16 17:57:14 brianp Exp $ */
+/* $Id: texstore.c,v 1.40 2002/09/17 14:14:18 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1646,7 +1646,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);
@@ -1699,7 +1698,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;