diff options
author | Brian Paul <[email protected]> | 2009-10-23 14:37:41 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-23 14:45:44 -0600 |
commit | 9528dc6ed8d09eba0dc3be17dc5e9ef4add8083c (patch) | |
tree | 8a1c6be4650709846c40872fca6691fa614be5ac /src/mesa/main/texcompress.h | |
parent | 5e4f5e41a487e9baa8a63842327d83cee659622e (diff) |
mesa: added _mesa_compressed_format_to_glenum()
Maps a compressed MESA_FORMAT_x to correspding GLenum. Needed for
querying a texture's actual format when a generic format was originally
requested.
Diffstat (limited to 'src/mesa/main/texcompress.h')
-rw-r--r-- | src/mesa/main/texcompress.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/texcompress.h b/src/mesa/main/texcompress.h index 44f33382228..0f1a38f88e9 100644 --- a/src/mesa/main/texcompress.h +++ b/src/mesa/main/texcompress.h @@ -52,6 +52,10 @@ _mesa_compressed_image_address(GLint col, GLint row, GLint img, GLsizei width, const GLubyte *image); +extern GLenum +_mesa_compressed_format_to_glenum(GLcontext *ctx, GLuint mesaFormat); + + extern void _mesa_init_texture_s3tc( GLcontext *ctx ); |