aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-08 20:16:18 -0600
committerBrian Paul <[email protected]>2011-09-08 20:16:18 -0600
commit3370ba802ff93fde399c9b07303a71ab0827e217 (patch)
tree1abfdf9478deca4e242412ace674c801bbec58f2 /src/mesa/main/texcompress.h
parent9a5b2899e058f3ec31a4eba5575eaa3fcfe1e3f5 (diff)
mesa: new _mesa_decompress_image() function
Use the old texture fetch functions to decompress a whole image. To be used by glGetTexImage().
Diffstat (limited to 'src/mesa/main/texcompress.h')
-rw-r--r--src/mesa/main/texcompress.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/texcompress.h b/src/mesa/main/texcompress.h
index 375cf90c8a2..2c357068c91 100644
--- a/src/mesa/main/texcompress.h
+++ b/src/mesa/main/texcompress.h
@@ -50,6 +50,11 @@ _mesa_compressed_image_address(GLint col, GLint row, GLint img,
gl_format mesaFormat,
GLsizei width, const GLubyte *image);
+extern void
+_mesa_decompress_image(gl_format format, GLuint width, GLuint height,
+ const GLubyte *src, GLint srcRowStride,
+ GLfloat *dest);
+
#else /* _HAVE_FULL_GL */
/* no-op macros */