- added per-channel access for color variables. However, since they are locally stored in registers, it required a minor bit of fudging for this case.

- make sure that a PFunction's implementation is always initialized before starting the code generator.
This commit is contained in:
Christoph Oelckers 2016-11-21 12:38:39 +01:00
parent 393bcf9e91
commit de2eb18727
6 changed files with 48 additions and 1 deletions

View file

@ -785,6 +785,8 @@ VMFunction *FFunctionBuildList::AddFunction(PFunction *functype, FxExpression *c
it.StateIndex = stateindex;
it.StateCount = statecount;
it.Lump = lumpnum;
assert(it.Func->Variants.Size() == 1);
it.Func->Variants[0].Implementation = it.Function;
// set prototype for named functions.
if (it.Func->SymbolName != NAME_None)