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.
This commit is contained in:
Brian Paul
2009-10-24 16:28:24 -06:00
parent bea245ac2f
commit 35efc6a1b3
6 changed files with 23 additions and 41 deletions

View File

@@ -694,11 +694,10 @@ st_TexImage(GLcontext * ctx,
else {
/* Allocate regular memory and store the image there temporarily. */
if (_mesa_is_format_compressed(texImage->TexFormat)) {
sizeInBytes = ctx->Driver.CompressedTextureSize(ctx,
texImage->Width,
texImage->Height,
texImage->Depth,
texImage->TexFormat);
sizeInBytes = _mesa_format_image_size(texImage->TexFormat,
texImage->Width,
texImage->Height,
texImage->Depth);
dstRowStride =
_mesa_compressed_row_stride(texImage->TexFormat, width);
assert(dims != 3);