diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-07-01 11:10:19 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-07-01 11:10:58 +0300 |
commit | 4cba209edd398c244de7a85b4a11eb0901a050ce (patch) | |
tree | 42834c5ae1bf576d7b913dc0f8b2e680dcb2db83 /source/blender/gpu/intern | |
parent | ccbf9ee48262c6078bcd10817f07c6e3f4bb9a25 (diff) |
GPUMaterial: Remove the max attribute check
This is needed to make the GPU_attribute used as generic input mechanism.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_node_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_node_graph.c b/source/blender/gpu/intern/gpu_node_graph.c index 3c6a03c56d3..1338c5312c2 100644 --- a/source/blender/gpu/intern/gpu_node_graph.c +++ b/source/blender/gpu/intern/gpu_node_graph.c @@ -378,7 +378,7 @@ static GPUMaterialAttribute *gpu_node_graph_add_attribute(GPUNodeGraph *graph, } /* Add new requested attribute if it's within GPU limits. */ - if (attr == NULL && num_attributes < GPU_MAX_ATTR) { + if (attr == NULL) { attr = MEM_callocN(sizeof(*attr), __func__); attr->type = type; STRNCPY(attr->name, name); |