mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
glsl: Trivial whitespace fixes in link_uniforms.cpp
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
dd4fada6cd
commit
d7aee96cc6
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue