diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-06-03 17:42:54 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-06-03 17:42:54 +0300 |
commit | 15a24f3d7fed0d50f544f86cdb72298338e33e2d (patch) | |
tree | 248c8aca4901e76b1a32e1b9680ca160870576b9 /source/blender/nodes | |
parent | 96eab0875597bad3e0470f67cb2ba8269cd06b03 (diff) |
GPUMaterial: Fix shader compilation when using UDIM textures
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_tex_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_image.c b/source/blender/nodes/shader/nodes/node_shader_tex_image.c index b349555efe8..cbda72cd228 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tex_image.c +++ b/source/blender/nodes/shader/nodes/node_shader_tex_image.c @@ -101,7 +101,7 @@ static int node_shader_gpu_tex_image(GPUMaterial *mat, if (ima->source == IMA_SRC_TILED) { const char *gpu_node_name = use_cubic ? "node_tex_tile_cubic" : "node_tex_tile_linear"; - GPUNodeLink *gpu_image = GPU_image(mat, ima, iuser, sampler_state); + GPUNodeLink *gpu_image = GPU_image_tiled(mat, ima, iuser, sampler_state); GPUNodeLink *gpu_image_tile_mapping = GPU_image_tiled_mapping(mat, ima, iuser); /* UDIM tiles needs a samper2DArray and sampler1DArray for tile mapping. */ GPU_stack_link(mat, node, gpu_node_name, in, out, gpu_image, gpu_image_tile_mapping); |