summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-28 21:52:43 -0600
committerBrian Paul <[email protected]>2009-09-28 21:52:43 -0600
commit0a306daf71588fc4ccfdc14450f8cd4ce00f9833 (patch)
tree9bb6ef7fcc5b696ad1cb3abab4c27c946f791b2d /src
parent6480210b89dc8ae0990c450d27870c7b7930f251 (diff)
mesa: use _mesa_texstore()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/mipmap.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index 0950d8abea1..c02c7052283 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1667,20 +1667,17 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
const GLenum srcFormat = _mesa_get_format_base_format(convertFormat);
GLint dstRowStride
= _mesa_compressed_row_stride(dstImage->TexFormat->MesaFormat, dstWidth);
- const StoreTexImageFunc storeImage =
- _mesa_get_texstore_func(dstImage->TexFormat->MesaFormat);
-
ASSERT(srcFormat == GL_RGB || srcFormat == GL_RGBA);
- storeImage(ctx, 2, dstImage->_BaseFormat,
- dstImage->TexFormat,
- dstImage->Data,
- 0, 0, 0, /* dstX/Y/Zoffset */
- dstRowStride, 0, /* strides */
- dstWidth, dstHeight, 1, /* size */
- srcFormat, CHAN_TYPE,
- dstData, /* src data, actually */
- &ctx->DefaultPacking);
+ _mesa_texstore(ctx, 2, dstImage->_BaseFormat,
+ dstImage->TexFormat,
+ dstImage->Data,
+ 0, 0, 0, /* dstX/Y/Zoffset */
+ dstRowStride, 0, /* strides */
+ dstWidth, dstHeight, 1, /* size */
+ srcFormat, CHAN_TYPE,
+ dstData, /* src data, actually */
+ &ctx->DefaultPacking);
/* swap src and dest pointers */
temp = (GLubyte *) srcData;