summaryrefslogtreecommitdiff
path: root/src/mesa/main/texcompress.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-10-18 17:41:45 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-10-18 17:41:45 +0000
commit2ce0654ebabc7fc6a2881f51e496e4e1f7533087 (patch)
treec459068fd937c29f58cd4d34de647c9977773e93 /src/mesa/main/texcompress.c
parent8eaa2902162e145cd07a9427ec99ab0ca85aa35a (diff)
implement auto mipmap generation for compressed textures
Diffstat (limited to 'src/mesa/main/texcompress.c')
-rw-r--r--src/mesa/main/texcompress.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c
index 0ba9aa9a4c..680c0bb023 100644
--- a/src/mesa/main/texcompress.c
+++ b/src/mesa/main/texcompress.c
@@ -1,4 +1,4 @@
-/* $Id: texcompress.c,v 1.1 2002/09/27 02:45:38 brianp Exp $ */
+/* $Id: texcompress.c,v 1.2 2002/10/18 17:41:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -142,18 +142,14 @@ _mesa_compressed_image_address(GLint col, GLint row, GLint img,
*/
void
_mesa_compress_teximage( GLcontext *ctx, GLsizei width, GLsizei height,
- GLenum srcFormat, const GLchan *source, GLint srcRowStride,
- GLenum dstFormat, GLubyte *dest, GLint dstRowStride )
+ GLenum srcFormat, const GLchan *source,
+ GLint srcRowStride,
+ const struct gl_texture_format *dstFormat,
+ GLubyte *dest, GLint dstRowStride )
{
- GLuint len = 0;
-
- switch (dstFormat) {
+ switch (dstFormat->MesaFormat) {
default:
_mesa_problem(ctx, "Bad dstFormat in _mesa_compress_teximage()");
return;
}
-
- /* sanity check */
- ASSERT(len == _mesa_compressed_texture_size(ctx, width, height,
- 1, dstFormat));
}