mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
mesa: glsl: mark constructor params as const
This commit is contained in:
parent
5f2a5f6164
commit
576c5fcc61
1 changed files with 2 additions and 1 deletions
|
|
@ -1754,7 +1754,8 @@ _slang_make_constructor(slang_assemble_ctx *A, slang_struct *str)
|
|||
printf("Field %d: %s\n", i, (char*) str->fields->variables[i]->a_name);
|
||||
*/
|
||||
slang_variable *p = slang_variable_scope_grow(fun->parameters);
|
||||
*p = *str->fields->variables[i];
|
||||
*p = *str->fields->variables[i]; /* copy the type */
|
||||
p->type.qualifier = SLANG_QUAL_CONST;
|
||||
}
|
||||
fun->param_count = fun->parameters->num_variables;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue