GPU: Fix: Use 2 slots for each UDIMs texture instead of 4 #105772

Merged
Miguel Pozo merged 2 commits from pragma37/blender:fix-udim-slots into main 2023-03-15 17:58:37 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 240e7b97e9 - Show all commits

View File

@ -484,7 +484,7 @@ static GPUMaterialTexture *gpu_node_graph_add_texture(GPUNodeGraph *graph,
GPUMaterialTexture *tex = static_cast<GPUMaterialTexture *>(graph->textures.first);
for (; tex; tex = tex->next) {
if (tex->ima == ima && tex->colorband == colorband && tex->sky == sky &&
tex->sampler_state == sampler_state) {
(tex->sampler_state == sampler_state || link_type == GPU_NODE_LINK_IMAGE_TILED_MAPPING)) {
break;
}
num_textures++;