diff options
author | Maciej Cencora <m.cencora@gmail.com> | 2009-12-13 16:12:11 +0100 |
---|---|---|
committer | Maciej Cencora <m.cencora@gmail.com> | 2009-12-13 17:20:11 +0100 |
commit | 9d8501bf2742519cc958c5f32122e196b64f8278 (patch) | |
tree | 6c9a1c0bbe6a52e9e06d21769e1fb43924ae1168 /src/mesa/drivers/dri/r300/r300_texcopy.c | |
parent | 079b670111fe41cabf700d089f489d4b116af5eb (diff) |
r300: fix glCopyTexSubImage
Need to properly setup colorbuffer when dst pitch != dst width.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_texcopy.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_texcopy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texcopy.c b/src/mesa/drivers/dri/r300/r300_texcopy.c index 5e3a724d4e..7702a1d67d 100644 --- a/src/mesa/drivers/dri/r300/r300_texcopy.c +++ b/src/mesa/drivers/dri/r300/r300_texcopy.c @@ -63,7 +63,6 @@ do_copy_texsubimage(GLcontext *ctx, assert(timg->mt->bo); assert(timg->base.Width >= dstx + width); assert(timg->base.Height >= dsty + height); - //assert(tobj->mt == timg->mt); intptr_t src_offset = rrb->draw_offset + x * rrb->cpp + y * rrb->pitch; intptr_t dst_offset = radeon_miptree_image_offset(timg->mt, _mesa_tex_target_to_face(target), level); @@ -87,7 +86,7 @@ do_copy_texsubimage(GLcontext *ctx, /* blit from src buffer to texture */ return r300_blit(r300, rrb->bo, src_offset, rrb->base.Format, rrb->pitch, rrb->base.Width, rrb->base.Height, timg->mt->bo ? timg->mt->bo : timg->bo, dst_offset, - timg->base.TexFormat, width, height); + timg->base.TexFormat, timg->base.Width, width, height); } static void |