summaryrefslogtreecommitdiff
path: root/src/mesa/main/texgetimage.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-24 16:49:57 -0600
committerBrian Paul <brianp@vmware.com>2009-10-24 16:50:00 -0600
commitd6ee86c77a8e1543557fd64c1f1c354baa0a8ad8 (patch)
treed281f3f9f02a86e91b4ea705a388406fa01b77ef /src/mesa/main/texgetimage.c
parent4c00981b22b28141af1442e5a679d0923b4358ae (diff)
mesa: remove _mesa_compressed_texture_size()
Use _mesa_format_image_size() instead.
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r--src/mesa/main/texgetimage.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index d5cd4b2b9d..1f0a3d793f 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -320,12 +320,10 @@ _mesa_get_compressed_teximage(GLcontext *ctx, GLenum target, GLint level,
struct gl_texture_object *texObj,
struct gl_texture_image *texImage)
{
- GLuint size;
-
- /* don't use texImage->CompressedSize since that may be padded out */
- size = _mesa_compressed_texture_size(ctx, texImage->Width, texImage->Height,
- texImage->Depth,
- texImage->TexFormat);
+ const GLuint size = _mesa_format_image_size(texImage->TexFormat,
+ texImage->Width,
+ texImage->Height,
+ texImage->Depth);
if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
/* pack texture image into a PBO */