diff options
author | marha <marha@users.sourceforge.net> | 2012-03-09 10:19:35 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-03-09 10:19:35 +0100 |
commit | d483a0007d3a25fbf565436f655fa45b4265628a (patch) | |
tree | 375342c609f272e0e025d33d4891fba3fdb69a7b /mesalib/src/mesa/main/readpix.c | |
parent | b4e09d9f9c2cb930daef6b578e3051e71425ed7f (diff) | |
download | vcxsrv-d483a0007d3a25fbf565436f655fa45b4265628a.tar.gz vcxsrv-d483a0007d3a25fbf565436f655fa45b4265628a.tar.bz2 vcxsrv-d483a0007d3a25fbf565436f655fa45b4265628a.zip |
libxcb fontconfig pixman mesa git update 9 Mar 2012
Diffstat (limited to 'mesalib/src/mesa/main/readpix.c')
-rw-r--r-- | mesalib/src/mesa/main/readpix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/readpix.c b/mesalib/src/mesa/main/readpix.c index 3384d8a38..491854955 100644 --- a/mesalib/src/mesa/main/readpix.c +++ b/mesalib/src/mesa/main/readpix.c @@ -291,10 +291,14 @@ slow_read_rgba_pixels( struct gl_context *ctx, for (j = 0; j < height; j++) { if (_mesa_is_integer_format(format)) { _mesa_unpack_uint_rgba_row(rbFormat, width, map, (GLuint (*)[4]) rgba); + _mesa_rebase_rgba_uint(width, (GLuint (*)[4]) rgba, + rb->_BaseFormat); _mesa_pack_rgba_span_int(ctx, width, (GLuint (*)[4]) rgba, format, type, dst); } else { _mesa_unpack_rgba_row(rbFormat, width, map, (GLfloat (*)[4]) rgba); + _mesa_rebase_rgba_float(width, (GLfloat (*)[4]) rgba, + rb->_BaseFormat); _mesa_pack_rgba_span_float(ctx, width, (GLfloat (*)[4]) rgba, format, type, dst, packing, transferOps); } |