st/gl: Only transfer needed parts in st_TexSubimage

This commit is contained in:
Jakob Bornecrantz 2009-03-18 19:10:32 +01:00
parent 989856bde4
commit 9e84e7def1

View file

@ -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;
}
}