diff options
author | Brian Paul <[email protected]> | 2011-12-30 08:24:55 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-30 08:24:55 -0700 |
commit | da0cc82a093eb97212e989648da638a262ed3e84 (patch) | |
tree | d3271c7872ac0f6e5e882859d561584f80a4393c /src/mesa/main/mipmap.c | |
parent | c22a95c4f2db64c61cb25f37acc38254f30850f1 (diff) |
mesa: simplify Driver.TexSubImage() parameters
There's no need to pass the target, level and texObj parameters since
they can be easily obtained from the texImage pointer.
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r-- | src/mesa/main/mipmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 867cb22e28a..9a6c6dea272 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -2132,11 +2132,10 @@ generate_mipmap_compressed(struct gl_context *ctx, GLenum target, } /* The image space was allocated above so use glTexSubImage now */ - ctx->Driver.TexSubImage2D(ctx, target, level + 1, + ctx->Driver.TexSubImage2D(ctx, dstImage, 0, 0, dstWidth, dstHeight, temp_base_format, temp_datatype, - temp_dst, &ctx->DefaultPacking, - texObj, dstImage); + temp_dst, &ctx->DefaultPacking); /* swap src and dest pointers */ { |