mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 15:50:19 +01:00
remove GLint t, pass target to _mesa_init_teximage_fields()
This commit is contained in:
parent
d5bbbd41c4
commit
e1cb2fb571
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue