summaryrefslogtreecommitdiff
path: root/src/mesa/main/texcompress.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/texcompress.c
parent4c00981b22b28141af1442e5a679d0923b4358ae (diff)
mesa: remove _mesa_compressed_texture_size()
Use _mesa_format_image_size() instead.
Diffstat (limited to 'src/mesa/main/texcompress.c')
-rw-r--r--src/mesa/main/texcompress.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c
index b07265d6d8..ad10993307 100644
--- a/src/mesa/main/texcompress.c
+++ b/src/mesa/main/texcompress.c
@@ -113,30 +113,6 @@ _mesa_get_compressed_formats(GLcontext *ctx, GLint *formats, GLboolean all)
}
-
-/**
- * Return number of bytes needed to store a texture of the given size
- * using the specified (compressed?) format.
- * This is called via the ctx->Driver.CompressedTextureSize function,
- * unless a device driver overrides it. A driver might override this
- * if it needs to use an unusual or padded texture memory layout.
- *
- * \param width texture width in texels.
- * \param height texture height in texels.
- * \param depth texture depth in texels.
- * \param mesaFormat one of the MESA_FORMAT_* compressed formats
- *
- * \return size in bytes, or zero if bad format
- */
-GLuint
-_mesa_compressed_texture_size( GLcontext *ctx,
- GLsizei width, GLsizei height, GLsizei depth,
- gl_format mesaFormat )
-{
- return _mesa_format_image_size(mesaFormat, width, height, depth);
-}
-
-
/**
* As above, but format is specified by a GLenum (GL_COMPRESSED_*) token.
*