mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Make non-const params references for spir-v
The whole reason for the reference work.
This commit is contained in:
parent
af42b8e221
commit
295cc0e0b2
1 changed files with 1 additions and 0 deletions
|
@ -882,6 +882,7 @@ spirv_create_param (symtab_t *parameters, symbol_t *param, param_qual_t qual)
|
|||
auto type = param->type;
|
||||
if (qual != pq_const) {
|
||||
param->lvalue = true;
|
||||
type = reference_type (type);
|
||||
}
|
||||
param->type = type;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue