Free memory associated with SPIR-V generation.
This commit is contained in:
parent
863aa667f3
commit
b7946d16bb
5 changed files with 109 additions and 93 deletions
|
|
@ -784,7 +784,9 @@ class TIntermAggregate : public TIntermOperator {
|
|||
public:
|
||||
TIntermAggregate() : TIntermOperator(EOpNull), userDefined(false), pragmaTable(0) { }
|
||||
TIntermAggregate(TOperator o) : TIntermOperator(o), pragmaTable(0) { }
|
||||
~TIntermAggregate() { delete pragmaTable; }
|
||||
// Since pragmaTable is allocated with the PoolAllocator, we
|
||||
// only want to destroy it, not free the associated memory.
|
||||
~TIntermAggregate() { pragmaTable->~TPragmaTable(); }
|
||||
virtual TIntermAggregate* getAsAggregate() { return this; }
|
||||
virtual const TIntermAggregate* getAsAggregate() const { return this; }
|
||||
virtual void setOperator(TOperator o) { op = o; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue