mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
glsl: fix broken indentation in do_structure_splitting()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
ad717102d9
commit
71efec290c
1 changed files with 12 additions and 15 deletions
|
|
@ -339,13 +339,10 @@ do_structure_splitting(exec_list *instructions)
|
|||
|
||||
entry->mem_ctx = ralloc_parent(entry->var);
|
||||
|
||||
entry->components = ralloc_array(mem_ctx,
|
||||
ir_variable *,
|
||||
type->length);
|
||||
entry->components = ralloc_array(mem_ctx, ir_variable *, type->length);
|
||||
|
||||
for (unsigned int i = 0; i < entry->var->type->length; i++) {
|
||||
const char *name = ralloc_asprintf(mem_ctx, "%s_%s",
|
||||
entry->var->name,
|
||||
const char *name = ralloc_asprintf(mem_ctx, "%s_%s", entry->var->name,
|
||||
type->fields.structure[i].name);
|
||||
|
||||
entry->components[i] =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue