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:
Nicholas Bishop 2015-02-05 11:20:24 +01:00
parent bec7d62218
commit e922903ae8
1 changed files with 1 additions and 1 deletions

View File

@ -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 */