mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
st/mesa: fix blit-based partial TexSubImage for 1D arrays
This fixes piglit spec/EXT_texture_array/render-1darray. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
56286834b8
commit
0b5d88a518
1 changed files with 2 additions and 0 deletions
|
|
@ -719,6 +719,8 @@ st_TexSubImage(struct gl_context *ctx, GLuint dims,
|
|||
|
||||
/* From now on, we need the gallium representation of dimensions. */
|
||||
if (gl_target == GL_TEXTURE_1D_ARRAY) {
|
||||
zoffset = yoffset;
|
||||
yoffset = 0;
|
||||
depth = height;
|
||||
height = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue