From: Jakob Bornecrantz Date: Wed, 18 Mar 2009 18:10:32 +0000 (+0100) Subject: st/gl: Only transfer needed parts in st_TexSubimage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e84e7def152aa8080da59a78795d6434e687403;p=mesa.git st/gl: Only transfer needed parts in st_TexSubimage --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index df169b163e0..edfa8854d89 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; } }