diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-03 08:59:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-03 09:25:58 +0300 |
commit | 973e1f9d9a967132cc76fbbcd485979ac27e10c5 (patch) | |
tree | 8b7c948cbabcbd9435f7fbaa04f4429cd8e0241a /source/blender/gpu/intern/gpu_shader_interface.c | |
parent | 05dcb007e181c961c0db87c1ce4745ae2d1d0fd0 (diff) |
Cleanup: use term 'attr' instead of 'attrib'
This was already the case in most parts of the GPU API.
Use full name for descriptive-comments.
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader_interface.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_interface.c b/source/blender/gpu/intern/gpu_shader_interface.c index 349a7217456..b877da3f1d5 100644 --- a/source/blender/gpu/intern/gpu_shader_interface.c +++ b/source/blender/gpu/intern/gpu_shader_interface.c @@ -236,7 +236,7 @@ GPUShaderInterface *GPU_shaderinterface_create(int32_t program) shaderface->name_buffer = MEM_mallocN(name_buffer_len, "name_buffer"); /* Attributes */ - shaderface->enabled_attrib_mask = 0; + shaderface->enabled_attr_mask = 0; for (uint32_t i = 0; i < attr_len; i++) { GPUShaderInput *input = MEM_mallocN(sizeof(GPUShaderInput), "GPUShaderInput Attr"); GLsizei remaining_buffer = name_buffer_len - shaderface->name_buffer_offset; @@ -256,7 +256,7 @@ GPUShaderInterface *GPU_shaderinterface_create(int32_t program) input->location = glGetAttribLocation(program, name); - shaderface->enabled_attrib_mask |= (1 << input->location); + shaderface->enabled_attr_mask |= (1 << input->location); set_input_name(shaderface, input, name, name_len); |