diff options
author | Ian Romanick <[email protected]> | 2016-12-12 12:13:13 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-12-19 15:55:44 -0800 |
commit | d7aee96cc65514d2acbfaf9aa714e6e163ea0d2a (patch) | |
tree | 467a096635667984dcfdf56d97511e83553f967a /src/compiler | |
parent | dd4fada6cddb2be4f3969c63aafca228407a2da3 (diff) |
glsl: Trivial whitespace fixes in link_uniforms.cpp
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/link_uniforms.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index 87e9392689c..396b44580f9 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++ b/src/compiler/glsl/link_uniforms.cpp @@ -194,8 +194,10 @@ program_resource_visitor::recursion(const glsl_type *t, char **name, record_type = t->fields.array; unsigned length = t->length; + /* Shader storage block unsized arrays: add subscript [0] to variable - * names */ + * names. + */ if (t->is_unsized_array()) length = 1; @@ -470,8 +472,7 @@ public: } } else { for (unsigned i = 0; i < num_blks; i++) { - if (strcmp(var->get_interface_type()->name, blks[i].Name) == - 0) { + if (strcmp(var->get_interface_type()->name, blks[i].Name) == 0) { buffer_block_index = i; break; } |