mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Support nil in matrix construction
While not used by glsl, ruamoko will and qfcc does internally.
This commit is contained in:
parent
d1364e460c
commit
1d0135be52
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ construct_by_components (const type_t *type, const expr_t *params,
|
|||
pexpr = pointer_deref (pexpr);
|
||||
ptype = dereference_type (ptype);
|
||||
}
|
||||
if (!is_math (ptype)) {
|
||||
if (!is_math (ptype) && !is_nil (pexpr)) {
|
||||
err = c++;
|
||||
components[err] = error (pexpr, "invalid type for conversion");
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue