From: Brian Paul Date: Wed, 1 Nov 2006 22:28:54 +0000 (+0000) Subject: update _mesa_select_tex_image() and _mesa_get_tex_image() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=faba58c447c9eeeea0f7ef405fa1ba1f73991375;p=mesa.git update _mesa_select_tex_image() and _mesa_get_tex_image() --- diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 604dea34e0a..f154bd46513 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -883,7 +883,7 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target, GLint border, bytesPerTexel; /* get src image parameters */ - srcImage = _mesa_select_tex_image(ctx, texUnit, target, level); + srcImage = _mesa_select_tex_image(ctx, texObj, target, level); ASSERT(srcImage); srcWidth = srcImage->Width; srcHeight = srcImage->Height; @@ -922,7 +922,7 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target, } /* get dest gl_texture_image */ - dstImage = _mesa_get_tex_image(ctx, texUnit, target, level + 1); + dstImage = _mesa_get_tex_image(ctx, texObj, target, level + 1); if (!dstImage) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "generating mipmaps"); return;