From 0b5d88a518da7e4c8a084b7881580846c5d6d11f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 8 Aug 2014 00:34:31 +0200 Subject: 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 Reviewed-by: Roland Scheidegger --- src/mesa/state_tracker/st_cb_texture.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index aa6b05f0b60..c4b2107ba6e 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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; } -- cgit v1.2.3