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:
authorCampbell Barton <ideasman42@gmail.com>2019-07-02 15:17:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-02 15:17:22 +0300
commit163996b68129f3a34db73c6a6a1e81ec8f4a81e4 (patch)
treea78662ee2ff3ce658f5a29ff241944ac7bd2953f /source/blender/gpu/intern
parentb708917d94afa3a77be5e571b1c36a364d2ec6b5 (diff)
Cleanup: move comments onto own lines to avoid breaking lines
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_shader_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_interface.c b/source/blender/gpu/intern/gpu_shader_interface.c
index e7483e45312..e34c6e23024 100644
--- a/source/blender/gpu/intern/gpu_shader_interface.c
+++ b/source/blender/gpu/intern/gpu_shader_interface.c
@@ -180,10 +180,10 @@ static const GPUShaderInput *add_uniform(GPUShaderInterface *shaderface, const c
input->location = glGetUniformLocation(shaderface->program, name);
- uint name_len = strlen(name);
+ const uint name_len = strlen(name);
+ /* Include NULL terminator. */
shaderface->name_buffer = MEM_reallocN(shaderface->name_buffer,
- shaderface->name_buffer_offset + name_len +
- 1); /* include NULL terminator */
+ shaderface->name_buffer_offset + name_len + 1);
char *name_buffer = shaderface->name_buffer + shaderface->name_buffer_offset;
strcpy(name_buffer, name);