summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/mipmap.c
diff options
context:
space:
mode:
authorPauli Nieminen <pauli.nieminen@linux.intel.com>2012-06-12 21:38:44 +0300
committerKenneth Graunke <kenneth@whitecape.org>2012-08-12 15:49:28 -0700
commitc9a7dfcf92e6adb4b85338c2c8dbbfbaf39fbfe7 (patch)
tree4953463bf82e63f8db3c3772718397293dc01059 /src/mesa/main/mipmap.c
parentc5af8891805fc4f590c1371c098cdbc704c44e00 (diff)
downloadexternal_mesa3d-c9a7dfcf92e6adb4b85338c2c8dbbfbaf39fbfe7.zip
external_mesa3d-c9a7dfcf92e6adb4b85338c2c8dbbfbaf39fbfe7.tar.gz
external_mesa3d-c9a7dfcf92e6adb4b85338c2c8dbbfbaf39fbfe7.tar.bz2
mesa: Remove unnecessary parameters from AllocTextureImageBuffer
Size and format information is always stored in gl_texture_image structure. That makes it preferable to remove duplicate information from parameters to make interface easier to understand. Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r--src/mesa/main/mipmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index 9f531ae..00d3e8f 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1865,8 +1865,7 @@ _mesa_prepare_mipmap_level(struct gl_context *ctx,
width, height, depth,
border, intFormat, format);
- ctx->Driver.AllocTextureImageBuffer(ctx, dstImage,
- format, width, height, depth);
+ ctx->Driver.AllocTextureImageBuffer(ctx, dstImage);
/* in case the mipmap level is part of an FBO: */
_mesa_update_fbo_texture(ctx, texObj, face, level);