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:
authorClément Foucault <foucault.clem@gmail.com>2019-08-15 00:43:03 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-08-15 00:59:34 +0300
commit6fcd071c7bcb8c9a5e0a7d0e7a6ef6363e43627e (patch)
tree98b5220f921ef3c473d937997016f901647f6cbf /source/blender/gpu/GPU_vertex_format.h
parent80e9eb66d568311f4acddf5dfe5bbf8f8618f18d (diff)
GPU: Vertex Format: Increase number of byte per attribute name
This reduces the risks of hash collision while maintaining a small number of character per attrib.
Diffstat (limited to 'source/blender/gpu/GPU_vertex_format.h')
-rw-r--r--source/blender/gpu/GPU_vertex_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_vertex_format.h b/source/blender/gpu/GPU_vertex_format.h
index 97c1828b593..8c22e3e1104 100644
--- a/source/blender/gpu/GPU_vertex_format.h
+++ b/source/blender/gpu/GPU_vertex_format.h
@@ -35,7 +35,7 @@
#define GPU_VERT_ATTR_NAMES_BUF_LEN 256
#define GPU_VERT_FORMAT_MAX_NAMES 63 /* More than enough, actual max is ~30. */
/* Computed as GPU_VERT_ATTR_NAMES_BUF_LEN / 30 (actual max format name). */
-#define GPU_MAX_SAFE_ATTRIB_NAME 8
+#define GPU_MAX_SAFE_ATTRIB_NAME 12
typedef enum {
GPU_COMP_I8,