vrend: fix 1D array texture upload

This fixes:
texelFetch  sampler1DArray
macos/master
Dave Airlie 7 years ago
parent 74fd068175
commit c6e74e808d
  1. 3
      src/vrend_renderer.c

@ -4746,7 +4746,8 @@ static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx,
glformat, comp_size, data); glformat, comp_size, data);
} else { } else {
glTexSubImage2D(res->target, info->level, x, res->target == GL_TEXTURE_1D_ARRAY ? info->box->z : y, 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); glformat, gltype, data);
} }
} }

Loading…
Cancel
Save