mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- removed assert that got triggered in an edge case that must pass here.
This commit is contained in:
parent
1bfa1fd5a6
commit
0a36ad0182
1 changed files with 3 additions and 1 deletions
|
@ -492,7 +492,9 @@ void VMFunctionBuilder::RegAvailability::Return(int reg, int count)
|
|||
mask <<= firstbit;
|
||||
// If we are trying to return registers that are already free,
|
||||
// it probably means that the caller messed up somewhere.
|
||||
assert((Used[firstword] & mask) == mask);
|
||||
// Unfortunately this can happen if an 'action' function gets called from a non-action context,
|
||||
// because for that case it pushes the self pointer a second time without reallocating, so it gets freed twice.
|
||||
//assert((Used[firstword] & mask) == mask);
|
||||
Used[firstword] &= ~mask;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue