Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2015-02-05 13:20:24 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2015-02-05 13:20:24 +0300
commite922903ae84e6d64e7664b9cb6b3eb8be341f24d (patch)
tree82adb8c0a00c951b3c87d64c3abb9deba5e7d54c /source/blender/gpu/intern/gpu_codegen.h
parentbec7d62218710bca1875f0743991cf55c80ff768 (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.h2
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 */