diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-02-05 13:20:24 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-02-05 13:20:24 +0300 |
commit | e922903ae84e6d64e7664b9cb6b3eb8be341f24d (patch) | |
tree | 82adb8c0a00c951b3c87d64c3abb9deba5e7d54c /source/blender/gpu/intern/gpu_codegen.h | |
parent | bec7d62218710bca1875f0743991cf55c80ff768 (diff) |
Use MAX_CUSTOMDATA_LAYER_NAME for size of GPUInput.attribname array
Before this was hardcoded to 32, which I think was incorrect because
this is used to store a customdata layer name.
Reviewers: psy-fi, campbellbarton, sergey
Reviewed By: campbellbarton, sergey
Differential Revision: https://developer.blender.org/D1040
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.h')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.h b/source/blender/gpu/intern/gpu_codegen.h index c76341afa00..a6da5e018fd 100644 --- a/source/blender/gpu/intern/gpu_codegen.h +++ b/source/blender/gpu/intern/gpu_codegen.h @@ -149,7 +149,7 @@ typedef struct GPUInput { GPUNodeLink *link; bool dynamictex; /* dynamic? */ CustomDataType attribtype; /* attribute type */ - char attribname[32]; /* attribute name */ + char attribname[MAX_CUSTOMDATA_LAYER_NAME]; /* attribute name */ int attribfirst; /* this is the first one that is bound */ GPUBuiltin builtin; /* builtin uniform */ GPUOpenGLBuiltin oglbuiltin; /* opengl built in varying */ |