summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-24 16:28:24 -0600
committerBrian Paul <brianp@vmware.com>2009-10-24 16:28:27 -0600
commit35efc6a1b3e3dada2cf9bd3a503c1b84f4bcb7f5 (patch)
tree408a7188c107636f95683e8d3d3688c271a00a0f /src/mesa/main
parentbea245ac2fecc312caec8f4af53174e4fb180103 (diff)
mesa: change compressed texture size calls
Replace calls to ctx->Driver.CompressedTextureSize with calls to _mesa_format_image_size. The former always called the later.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/mipmap.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index 694d593330..40cf43dfff 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1618,11 +1618,9 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
* Setup src and dest data pointers.
*/
if (_mesa_is_format_compressed(dstImage->TexFormat)) {
- GLuint dstCompressedSize
- = ctx->Driver.CompressedTextureSize(ctx, dstImage->Width,
- dstImage->Height,
- dstImage->Depth,
- dstImage->TexFormat);
+ GLuint dstCompressedSize =
+ _mesa_format_image_size(dstImage->TexFormat, dstImage->Width,
+ dstImage->Height, dstImage->Depth);
ASSERT(dstCompressedSize > 0);
dstImage->Data = _mesa_alloc_texmemory(dstCompressedSize);