diff options
author | Brian Paul <[email protected]> | 2012-02-29 20:55:49 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-03-08 20:10:36 -0700 |
commit | 774c4027651436451b3486f62b9a8903f29a715b (patch) | |
tree | 1f757d9d0aafdcb38ce83fb271e07a0a6ef76cf1 /src/mesa/main/pack.h | |
parent | be5f27a84d0d4efb57071d9d7ecda061223d03ef (diff) |
mesa: add _mesa_rebase_rgba_float/uint() functions
These will be used by glReadPixels() and glGetTexImage() to fix issues
with reading GL_LUMINANCE and other formats.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/pack.h')
-rw-r--r-- | src/mesa/main/pack.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/pack.h b/src/mesa/main/pack.h index b1853cd5909..cd49c74954a 100644 --- a/src/mesa/main/pack.h +++ b/src/mesa/main/pack.h @@ -149,4 +149,11 @@ _mesa_pack_rgba_span_int(struct gl_context *ctx, GLuint n, GLuint rgba[][4], GLenum dstFormat, GLenum dstType, GLvoid *dstAddr); + +extern void +_mesa_rebase_rgba_float(GLuint n, GLfloat rgba[][4], GLenum baseFormat); + +extern void +_mesa_rebase_rgba_uint(GLuint n, GLuint rgba[][4], GLenum baseFormat); + #endif |