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
This commit is contained in:
parent
bec7d62218
commit
e922903ae8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue