From c6e74e808d485ea571cc3255dfd66326fa14a7df Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 25 Jul 2017 10:50:40 +1000 Subject: [PATCH] vrend: fix 1D array texture upload This fixes: texelFetch sampler1DArray --- src/vrend_renderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index e5d9f5c..85f9dbd 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -4746,7 +4746,8 @@ static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx, glformat, comp_size, data); } else { glTexSubImage2D(res->target, info->level, x, res->target == GL_TEXTURE_1D_ARRAY ? info->box->z : y, - info->box->width, info->box->height, + info->box->width, + res->target == GL_TEXTURE_1D_ARRAY ? info->box->depth : info->box->height, glformat, gltype, data); } }