diff options
author | Brian Paul <brianp@vmware.com> | 2011-09-06 11:32:13 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-09-06 11:32:16 -0600 |
commit | 519acceab47574a4782878dd751e751da672a572 (patch) | |
tree | b459b2d1b1c33c62b008943a97bc4c63e04f870f | |
parent | e1d071a1adf4874153ccb12eb069cbb18f9fa130 (diff) | |
download | mesa-map-texture-image-v5.tar.gz |
mesa: pass linear-ized texture format to _mesa_unpack_rgba_row()map-texture-image-v5
Fixes glean texture_srgb failure.
-rw-r--r-- | src/mesa/main/texgetimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 16316d6a299..b152cc3ebdc 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -318,7 +318,7 @@ get_tex_rgba(struct gl_context *ctx, GLuint dimensions, (texImage->ImageOffsets[img] + texImage->RowStride * row) * texelSize; - _mesa_unpack_rgba_row(texImage->TexFormat, width, src, rgba); + _mesa_unpack_rgba_row(texFormat, width, src, rgba); if (texImage->_BaseFormat == GL_ALPHA) { GLint col; |