diff options
author | Brian Paul <[email protected]> | 2006-11-01 22:28:54 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-11-01 22:28:54 +0000 |
commit | faba58c447c9eeeea0f7ef405fa1ba1f73991375 (patch) | |
tree | 861190c911fd39cef8703aa608cba7f55fc96cd0 /src/mesa/main | |
parent | 92c99bc51bc296a604f176cb5e98f53155d3f375 (diff) |
update _mesa_select_tex_image() and _mesa_get_tex_image()
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mipmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |