diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2009-03-18 19:10:32 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2009-03-19 02:23:06 +0100 |
commit | 9e84e7def152aa8080da59a78795d6434e687403 (patch) | |
tree | 21f19a24a2a4c56839607d5dd5e440026f866d3f /src | |
parent | 989856bde47d699d7e18798df4013fbf962e1d4b (diff) |
st/gl: Only transfer needed parts in st_TexSubimage
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index df169b163e..edfa8854d8 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -802,8 +802,7 @@ st_TexSubimage(GLcontext * ctx, texImage->Data = st_texture_image_map(ctx->st, stImage, zoffset, PIPE_TRANSFER_WRITE, xoffset, yoffset, - stImage->base.Width, - stImage->base.Height); + width, height); dstRowStride = stImage->transfer->stride; } @@ -832,8 +831,7 @@ st_TexSubimage(GLcontext * ctx, texImage->Data = st_texture_image_map(ctx->st, stImage, zoffset + i, PIPE_TRANSFER_WRITE, xoffset, yoffset, - stImage->base.Width, - stImage->base.Height); + width, height); src += srcImageStride; } } |