summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-11-10 13:46:25 +0000
committerDave Airlie <airlied@redhat.com>2011-11-11 15:04:52 +0000
commitbeb3e81b86698359e037d49f35feba3ca53626b2 (patch)
tree6a2be2d8c01197d5bbbaac6bb8fde65bcab06326 /src/mesa/drivers/dri/radeon/radeon_pixel_read.c
parentba3b9fad60d156a4e3e6311b92c652b36d8969d2 (diff)
radeon: fix bug with wrong stride being used for rectangluar textures.
This broke the meta bitmap code when it was enabled. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_pixel_read.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_pixel_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
index 62e047157d7..b819ac4e30a 100644
--- a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
+++ b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c
@@ -128,7 +128,7 @@ do_blit_readpixels(struct gl_context * ctx,
}
assert(x >= 0 && y >= 0);
- aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0);
+ aligned_rowstride = get_texture_image_row_stride(radeon, dst_format, dst_rowstride, 0, GL_TEXTURE_2D);
dst_rowstride *= _mesa_get_format_bytes(dst_format);
if (_mesa_is_bufferobj(pack->BufferObj) && aligned_rowstride != dst_rowstride)
return GL_FALSE;