diff options
author | Brian Paul <[email protected]> | 2009-10-27 16:39:01 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-27 16:46:20 -0600 |
commit | 22575abdec73312e010e016e381f7cf8761ad652 (patch) | |
tree | f92b0ec3fb01a68073eb3df75ee73ed9e3a4ecec | |
parent | 517ae7a3b65bca6770e8738464aa0ef526cc88b4 (diff) |
intel: fix src offset bug in do_copy_texsubimage()
Use src->draw_offset intead of zero. Zero usually worked, except when
the src renderbuffer is actually a texture mipmap level higher than zero.
Fixes progs/test/blitfb.c test.
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index 9d58b11b14f..95dee60f9c1 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -158,7 +158,7 @@ do_copy_texsubimage(struct intel_context *intel, intelImage->mt->cpp, src_pitch, src->buffer, - 0, + src->draw_offset, src->tiling, intelImage->mt->pitch, dst_bo, |