mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
st/gl: Only transfer needed parts in st_TexSubimage
This commit is contained in:
parent
989856bde4
commit
9e84e7def1
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue