mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
create empty defs for vertex and quaternion compontents
This commit is contained in:
parent
768c4a49d3
commit
59ff35558f
1 changed files with 6 additions and 0 deletions
|
@ -212,6 +212,12 @@ PR_ReuseConstant (expr_t *expr, def_t *def)
|
|||
cn = PR_NewDef (type, "IMMEDIATE", 0);
|
||||
cn->ofs = PR_NewLocation (type);
|
||||
pr_global_defs[cn->ofs] = cn;
|
||||
if (type == &type_vector || type == &type_quaternion) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i< 3 + (type == &type_quaternion); i++)
|
||||
PR_NewDef (&type_float, "IMMEDIATE", 0);
|
||||
}
|
||||
}
|
||||
cn->initialized = 1;
|
||||
// copy the immediate to the global area
|
||||
|
|
Loading…
Reference in a new issue